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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Uniform for T