distance3d.random.rand_sphere¶
- distance3d.random.rand_sphere(random_state, center_scale=1.0, radius_scale=1.0)[source]¶
Sample sphere.
- Parameters:
- random_statenp.random.RandomState
Random number generator.
- center_scalefloat, optional (default: 1)
Scaling factor for center.
- radius_scalefloat, optional (default: 1)
Scaling factor for radius.
- Returns:
- centerarray, shape (3,)
Center of the sphere.
- radiusfloat
Radius of the sphere within (0, radius_scale].