LeetCode 478: Generate Random Point in a Circle
A clear explanation of generating uniformly random points inside a circle using polar coordinates.
2 notes
A clear explanation of generating uniformly random points inside a circle using polar coordinates.
A clear explanation of generating a uniform random integer from 1 to 10 using only rand7 and rejection sampling.