Expand description
Random number generators.
See crate ::rand
.
Modules§
- Generating random samples from probability distributions
- Convenience re-export of common members
- Random number generators and adapters
- Sequence-related functionality
Traits§
- A marker trait used to indicate that an
RngCore
implementation is supposed to be cryptographically secure. - Types which may be filled with random data
- User-level interface for RNGs
- Implementation-level interface for RNGs
- A random number generator that can be explicitly seeded.
- A marker trait used to indicate that a
TryRngCore
implementation is supposed to be cryptographically secure. - A potentially fallible variant of
RngCore
Functions§
- Fill any type implementing
Fill
with random data - Generate a random value using the thread-local random number generator.
- Return a bool with a probability
p
of being true. - Return an iterator over
random()
variates - Generate a random value in the given range using the thread-local random number generator.
- Return a bool with a probability of
numerator/denominator
of being true. - Access a fast, pre-initialized generator
- thread_
rng Deprecated Access the thread-local generator