aspcore.montecarlo.uniform_random_on_sphere
- aspcore.montecarlo.uniform_random_on_sphere(num_points, rng)
Generate uniformly random points on the unit sphere.
- num_pointsint
The number of points to generate
- rngnumpy.random.Generator
The random number generator to use
- Returns:
points – The points on the unit sphere
- Return type:
ndarray of shape (num_points, 3)