Module prelude
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 *;
# let mut r = from_rng;
# let _: f32 = r.random;
Structs
Traits
- CryptoRng
-
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
- SeedableRng
- SliceRandom Extension trait on slices, providing shuffling methods.