Expand description
rand, re-exported for convenience and version-compatibility.
Modules§
- distr
- Generating random samples from probability distributions
- prelude
- Convenience re-export of common members
- rand_
core - Random number generation traits
- rngs
- Random number generators and adapters
- seq
- Sequence-related functionality
Traits§
- Crypto
Rng - A marker trait over
RngCorefor securely unpredictable RNGs - Fill
- Types which may be filled with random data
- Rng
- User-level interface for RNGs
- RngCore
- Implementation-level interface for RNGs
- Seedable
Rng - A random number generator that can be explicitly seeded.
- TryCrypto
Rng - A marker trait over
TryRngCorefor securely unpredictable RNGs - TryRng
Core - A potentially fallible variant of
RngCore
Functions§
- fill
- Fill any type implementing
Fillwith random data - random
- Generate a random value using the thread-local random number generator.
- random_
bool - Return a bool with a probability
pof being true. - random_
iter - Return an iterator over
random()variates - random_
range - Generate a random value in the given range using the thread-local random number generator.
- random_
ratio - Return a bool with a probability of
numerator/denominatorof being true. - rng
- Access a fast, pre-initialized generator
- thread_
rng Deprecated - Access the thread-local generator