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

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

: use Distribution instead

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

Required Methods

Deprecated since 0.5.0

: use Distribution instead

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

Implementors