Hello Codeforces, I was solving the [problem](https://leetcode.com/problems/random-point-in-non-overlapping-rectangles/), and I geot the right idea, but there was a problem with choosing the index randomly using `uniform_int_distribution<int>`.↵
↵
[sol1](https://pastebin.com/QLG60DME): This gives me **WA** at test case 32 because I was trying to pick index directly.↵
↵
[sol2](https://pastebin.com/7Sci3Jed): Now, at this time I pick randomly with `lower_bound`, and it **worked**.↵
↵
Is there any better way to choose index uniformly and randomly?↵
↵
**Thanks in advance:)**
↵
[sol1](https://pastebin.com/QLG60DME): This gives me **WA** at test case 32 because I was trying to pick index directly.↵
↵
[sol2](https://pastebin.com/7Sci3Jed): Now, at this time I pick randomly with `lower_bound`, and it **worked**.↵
↵
Is there any better way to choose index uniformly and randomly?↵
↵
**Thanks in advance:)**