

A point on the circumference of a circle is considered an inner point.
The first line contains an integer 'T' which denotes the number of test cases or queries to be run.
The first line of each test case contains three space-separated integers ‘X’, ‘Y’, ‘R’ denoting x-coordinate, y-coordinate of the center of the circle and ‘R’ denoting the radius of the circle.
For each test case, the output will be 1, if you generated correct uniformly distributed points as described in the problem, else 0.
You do not need to input or print anything, and it has already been taken care of. Just implement the given function.
1 <= T <= 5
-10 ^ 9 <= X, Y <= 10 ^ 9
1 <= R <= 10 ^ 9
Time Limit: 1sec
The idea is to generate a random x-coordinate and y-coordinate and if it lies inside the circle, then return this point.
Any point on a circle can be described as a ( 'R', 'THETA') where 'R' is the distance of a point from the center of the circle and 'THETA' is the angle with the x-axis. To generate a random point inside a circle we can generate random 'R' and random 'THETA'. A key point to remember here is that to generate uniformly distributed points we want more points on a circle with a bigger area than a circle with a smaller area. As the area is proportional to the square of the radius. So Instead of generating uniform 'R' of all lengths, we want to generate more 'R' of bigger lengths.
For example for uniform distribution if 'R' with length must 1 is generated 4 times then 'R' with length ‘2’ should be generated 16 times, as the area it proportion to the square of 'R' i.e radius of the circle.