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

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

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

Required methods

fn random(r: &mut R) -> Self

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

Loading content...

Implementations on Foreign Types

impl<R: RNG> RandomGen<R> for char[src]

impl<R: RNG> RandomGen<R> for u8[src]

impl<R: RNG> RandomGen<R> for i8[src]

impl<R: RNG> RandomGen<R> for u16[src]

impl<R: RNG> RandomGen<R> for i16[src]

impl<R: RNG> RandomGen<R> for u32[src]

impl<R: RNG> RandomGen<R> for i32[src]

impl<R: RNG> RandomGen<R> for u64[src]

impl<R: RNG> RandomGen<R> for i64[src]

impl<R: RNG> RandomGen<R> for u128[src]

impl<R: RNG> RandomGen<R> for i128[src]

impl<R: RNG> RandomGen<R> for usize[src]

impl<R: RNG> RandomGen<R> for isize[src]

Loading content...

Implementors

Loading content...