We need to generate a random point in a circle with uniform distribution.

A naive approach with polar coordinates by picking a random angle and a random distance doesn’t give uniform distribution - there are more points close to center and fewer points at the radius. This article -has explanation and visualization.

NNN points, left to right: naive approach, correct formula, Monte Carlo (XXX attempts)