I have an svg circle element with coordinate attribute as below:
<circle id="c1" class="area" cx="440" cy="415" r="75"></circle>
by generate just n random point coordinates cx,cy and then check if each point is within the svg circle if the distance from it to the center is at most the radius of circle element.
by generate the radius of the point as
R * sqrt(random()) and the theta as
random() * 2 * PI and calculate cx,cy as
r * cos(theta) and
r * sin(theta).
Is there a better approach?