uniform_spherical_random_volume#
- astropy.coordinates.uniform_spherical_random_volume(size=1, max_radius=1)[source]#
Generate a random sampling of points that follow a uniform volume density distribution within a sphere.
- Parameters:
- size
int
The number of points to generate.
- max_radiusnumber, astropy:quantity-like, optional
A dimensionless or unit-ful factor to scale the random distances.
- size
- Returns:
- rep
SphericalRepresentation
The random points.
- rep