narupatools.physics.random

Methods for generating random values.

Functions

random_quaternion

Generate a random vector of length 3.

random_sphere

Generate a random point on the unit sphere.

random_vector

Generate a random vector of length 3.

narupatools.physics.random.random_quaternion()Union[numpy.ndarray[Any, numpy.dtype[numpy.float64]], Sequence[float]]

Generate a random vector of length 3.

narupatools.physics.random.random_sphere()numpy.ndarray[Any, numpy.dtype[numpy.float64]]

Generate a random point on the unit sphere.

narupatools.physics.random.random_vector(*, max_magnitude: float = 1.0)numpy.ndarray[Any, numpy.dtype[numpy.float64]]

Generate a random vector of length 3.

Parameters

max_magnitude – Maximum magnitude of the vector.