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

A trait for a uniform random number generator.

Required Methods§

source

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

Samples a random value from a uniform distribution.

Implementors§

source§

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