Trait rand::distributions::Sample [] [src]

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

: use rand from crates.io

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

Required Methods

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

Unstable (rand)

: use rand from crates.io

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

Implementors