spheres.utils.rand_xyz

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

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

Parameters

n (int) – Number of coordinates.

Returns

xyz – n cartesian coordinates.

Return type

np.array