Module prelude

Module prelude 

Source
Expand description

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 rand::prelude::*;

Traits§

CryptoRng
A marker trait used to indicate that an RngCore or BlockRngCore implementation is supposed to be cryptographically secure.
Distribution
Types (distributions) that can be used to create a random instance of T.
IteratorRandom
Extension trait on iterators, providing random sampling methods.
Rng
An automatically-implemented extension trait on RngCore providing high-level generic methods for sampling values and other convenience methods.
RngCore
The core of a random number generator.
SeedableRng
A random number generator that can be explicitly seeded.
SliceRandom
Extension trait on slices, providing random mutation and sampling methods.