pub trait RandomGen<Generator: Rng<OUTPUT>, const OUTPUT: usize> {
// Required method
fn random(rng: &mut Generator) -> Self;
}
Expand description
A trait used for generating a random object with an RNG,
Required Methods§
sourcefn random(rng: &mut Generator) -> Self
fn random(rng: &mut Generator) -> Self
Return a random instance of the implementing type, from the specified RNG instance.