Trait Distribution

trait Distribution<T>

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

Required Methods

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

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

Implementors