[Math] Random Uniformly Distributed Points in a Circle

polar coordinatesprobabilityrandom

I know that by just using a random angle and a random radius within the bounds of your circle, you will end up with points near the center of a circle. Whereas if you do $\sqrt{Random(0,1)}*MaxRadius$ for your radius, you will end up with what appears to be a uniformly random point. I am happy this works but I would like to understand where the square root comes from. The Square Root function in this calculation seems magical to me and I would like to know what it means in this context.

Best Answer

The point is that the area of the circle of radius $r$ is $\pi r^2$, and you want the probability of distance $\le r$ from the centre to be proportional to that area.

Related Question