pub trait Uniform: Sized {
    // Required method
    fn rand<R>(rng: &mut R) -> Self
       where R: Rng + ?Sized;
}
Expand description

A trait for a uniform random number generator.

Required Methods§

fn rand<R>(rng: &mut R) -> Selfwhere R: Rng + ?Sized,

Samples a random value from a uniform distribution.

Implementors§

§

impl<T> Uniform for Twhere Standard: Distribution<T>,