Trait rand::distributions::Distribution [] [src]

pub trait Distribution<T> {
    fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> T;
}

Types (distributions) that can be used to create a random instance of T.

Required Methods

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

Implementations on Foreign Types

impl<'a, T, D: Distribution<T>> Distribution<T> for &'a D
[src]

[src]

Implementors