Trait rand04_compat::RngExt

source ·
pub trait RngExt {
    fn gen04<T: Rand>(&mut self) -> T;
    fn gen_iter04<T: Rand>(&mut self) -> Generator<'_, T, Self> 
        Self: Sized
; }
Expand description

An extension trait for Rng to generate values that implement rand04::Rand.

Required Methods

Returns a random value.

Returns an iterator that will yield an infinite number of randomly generated items.