Trait std::rand::RandDeprecated [-] [+] [src]

pub trait Rand {
    fn rand<R>(rng: &mut R) -> Self where R: Rng;
}

A type that can be randomly generated using an Rng.

Required Methods

fn rand<R>(rng: &mut R) -> Self where R: Rng

Generates a random instance of this type using the specified source of randomness.

Implementors