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
- Thread
Rng - A reference to the thread-local generator
Traits§
- Crypto
Rng - 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
. - Indexed
MutRandom - Extension trait on indexable lists, providing random sampling methods.
- Indexed
Random - Extension trait on indexable lists, providing random sampling methods.
- Iterator
Random - Extension trait on iterators, providing random sampling methods.
- Rng
- User-level interface for RNGs
- RngCore
- Implementation-level interface for RNGs
- Seedable
Rng - A random number generator that can be explicitly seeded.
- Slice
Random - Extension trait on slices, providing shuffling methods.