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) -> TSamples a random value from the distribution, using the specified random source.
Implementors
impl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for crate::range::RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFullimpl<T, DT: Distribution<T>> Distribution for &DTimpl Distribution for RangeFullimpl Distribution for RangeFullimpl Distribution for RangeFull