Generate a Random point within a circle of radius R


Given a circle with a radius \(R\) centered at the origin \( (0,0) \) , generate a uniformly random point \( (x,y) \) inside the circle. The point should be evenly distributed over the entire area of the circle, rather than clustering near the center.

Inputs
  • A single positive number \( R \), representing the radius of the circle.
Output
  • A tuple \( (x,y) \) representing the coordinates of a randomly generated point inside the circle.

Code Output