Trait rand_bits::Distribution
source · pub trait Distribution<T> {
// Required method
fn sample<R>(&self, rng: &mut R, bits: u8) -> T
where R: Rng + ?Sized;
}
Expand description
Types (distributions) that can be used to create a random instance of T
.
Based on rand::distributions::Distribution
.
Required Methods§
Object Safety§
This trait is not object safe.