spheres.utils.rand_sph

spheres.utils.rand_sph(n=1)[source]

Generates (n) random point(s) on the unit sphere in spherical coordinates.

Parameters

n (int) – Number of coordinates.

Returns

xyz – n spherical coordinates.

Return type

np.array