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§

source

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

Samples a random value from a uniform distribution.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Uniform for T