Module rand::prelude[][src]

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


pub use crate::distributions::Distribution;
pub use crate::rngs::SmallRng;
pub use crate::rngs::StdRng;
pub use crate::rngs::ThreadRng;
pub use crate::seq::IteratorRandom;
pub use crate::seq::SliceRandom;
pub use crate::random;
pub use crate::thread_rng;
pub use crate::CryptoRng;
pub use crate::Rng;
pub use crate::RngCore;
pub use crate::SeedableRng;