Tag: Probability

Uniform Sampling of Points Inside Circle and Sphere

Type: Technical
Published:
Areas: Maths
Tags: Probability, Geometry, Rng

When generating random points within a circle or sphere, a naive approach can lead to uneven distributions, with points clustering around the center. To achieve a uniform distribution, a more sophisticated method is needed. In this article, we will derive, motivate, and explain the necessary equations to generate points uniformly within circles and spheres.