Trait rand::Rand [] [src]

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

: use rand from crates.io

A type that can be randomly generated using an Rng.

Required Methods

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

Unstable (rand)

: use rand from crates.io

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

Implementors