Module prelude

Source
Expand description

Convenience re-export of common members

Like the standard library’s prelude, this module simplifies importing of common items. Unlike the standard prelude, the contents of this module must be imported manually:

use rand::prelude::*;

Structs§

StdRng
A strong, fast (amortized), non-portable RNG
ThreadRng
A reference to the thread-local generator

Traits§

CryptoRng
A marker trait used to indicate that an RngCore implementation is supposed to be cryptographically secure.
Distribution
Types (distributions) that can be used to create a random instance of T.
IndexedMutRandom
Extension trait on indexable lists, providing random sampling methods.
IndexedRandom
Extension trait on indexable lists, providing random sampling methods.
IteratorRandom
Extension trait on iterators, providing random sampling methods.
Rng
User-level interface for RNGs
RngCore
Implementation-level interface for RNGs
SeedableRng
A random number generator that can be explicitly seeded.
SliceRandom
Extension trait on slices, providing shuffling methods.