Module rand

Source
Expand description

Shuttle’s implementation of the rand crate, v0.8.

Shuttle captures and controls the nondeterminism introduced by randomness and allows it to be replayed deterministically.

Modules§

rngs
Random number generators and adapters

Traits§

Rng
An automatically-implemented extension trait on RngCore providing high-level generic methods for sampling values and other convenience methods.
RngCore
The core of a random number generator.

Functions§

thread_rng
Retrieve the thread-local random number generator, seeded by the system. Intended to be used in method chaining style, e.g. thread_rng().gen::<i32>(), or cached locally, e.g. let mut rng = thread_rng();.