Trait Distribution

pub trait Distribution<T>

A trait representing a distribution of random values for a type.

Required Methods

fn sample(&self, source: &mut impl Rng + ?Sized) -> T

Samples a random value from the distribution, using the specified random source.

Implementors