Trait std::rand::distributions::SampleUnstable [-] [+] [src]

pub trait Sample<Support> {
    fn sample<R>(&mut self, rng: &mut R) -> Support where R: Rng;
}

Types that can be used to create a random instance of Support.

Required Methods

fn sample<R>(&mut self, rng: &mut R) -> Support where R: Rng

Generate a random value of Support, using rng as the source of randomness.

Implementors