Trait nanorand::gen::RandomGen[][src]

pub trait RandomGen<R: Rng> {
    fn random(r: &mut R) -> Self;
}
Expand description

A trait used for generating a random object with an RNG,

Required methods

Return a random instance of the implementing type, from the specified RNG instance.

Implementations on Foreign Types

Implementors