Trait nanorand::gen::RandomRange[][src]

pub trait RandomRange<R: Rng>: RandomGen<R> {
    fn random_range<B: RangeBounds<Self>>(r: &mut R, range: B) -> Self;
}
Expand description

A trait used for generating a random number within a range, with an RNG,

Required methods

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

Implementations on Foreign Types

Implementors