Module rand

Module rand 

Source
Expand description

Pseudo-random number generation and distributions.

Structs§

Bernoulli
A Bernoulli distribution.
PointsInUnitBall
A uniform distribution of 3-points inside the (closed) unit ball.
PointsOnUnitDisk
A uniform distribution of 2-points inside the (closed) unit disk.
Uniform
A uniform distribution of values in a range.
UnitCircle
A uniform distribution of unit 2-vectors.
UnitSphere
A uniform distribution of unit 3-vectors.
VectorsInUnitBall
A uniform distribution of 3-vectors inside the (closed) unit ball.
VectorsOnUnitDisk
A uniform distribution of 2-vectors inside the (closed) unit disk.
Xorshift64
A pseudo-random number generator (PRNG) that uses a [Xorshift algorithm] to generate 64 bits of randomness at a time, represented by a u64.

Traits§

Distrib
Trait for generating values sampled from a probability distribution.

Type Aliases§

DefaultRng