Expand description
Convenience re-export of common members.
This corresponds to rand::prelude.
Re-exports§
pub use crate::rngs::CapRng;pub use crate::random;pub use crate::thread_rng;
Structs§
- Small
Rng - A small-state, fast non-crypto PRNG
- StdRng
- The standard RNG. The PRNG algorithm in
StdRngis chosen to be efficient on the current platform, to be statistically strong and unpredictable (meaning a cryptographically secure PRNG).
Traits§
- Crypto
Rng - A marker trait used to indicate that an
RngCoreorBlockRngCoreimplementation is supposed to be cryptographically secure. - Distribution
- Types (distributions) that can be used to create a random instance of
T. - Iterator
Random - Extension trait on iterators, providing random sampling methods.
- Rng
- An automatically-implemented extension trait on
RngCoreproviding high-level generic methods for sampling values and other convenience methods. - RngCore
- The core of a random number generator.
- Seedable
Rng - A random number generator that can be explicitly seeded.
- Slice
Random - Extension trait on slices, providing random mutation and sampling methods.