Module flow_sdk::algorithms::rand [−][src]
Expand description
Re-exports items from the rand
crate.
Modules
Generating random samples from probability distributions.
Convenience re-export of common members
Pseudo-random number generators.
Random number generators and adapters for common usage:
Functions for randomly accessing and sampling sequences.
Structs
Error type of random number generators
Enums
Error kind which can be matched over.
Traits
Trait for casting types to byte slices
A marker trait used to indicate that an RngCore
or BlockRngCore
implementation is supposed to be cryptographically secure.
A convenience extension to SeedableRng
allowing construction from fresh
entropy. This trait is automatically implemented for any PRNG implementing
SeedableRng
and is not intended to be implemented by users.
An automatically-implemented extension trait on RngCore
providing high-level
generic methods for sampling values and other convenience methods.
The core of a random number generator.
A random number generator that can be explicitly seeded.
Functions
Generates a random value using the thread-local random number generator.
Retrieve the lazily-initialized thread-local random number generator,
seeded by the system. Intended to be used in method chaining style,
e.g. thread_rng().gen::<i32>()
, or cached locally, e.g.
let mut rng = thread_rng();
. Invoked by the Default
trait, making
ThreadRng::default()
equivelent.