[−][src]Trait picorand::PicoRandRNG
Requirements for compatible PRNG.
Associated Types
Loading content...Required methods
pub fn new(seed: Self::Input) -> Self
[src]
Create a new PRNG instance using a specific seed.
pub fn rand(&mut self) -> Self::Output
[src]
Generate a new number using the PRNG.
pub fn rand_range(&mut self, min: usize, max: usize) -> Self::Output
[src]
Constrain a randomly generated number to a fixed range.
Implementors
impl PicoRandRNG for WyRand
[src]
type Input = u64
Input type for the PRNG.
type Output = u64
Output type for the PRNG.
pub fn new(seed: Self::Input) -> Self
[src]
Create a new WyRand
instance using a specific seed.
pub fn rand(&mut self) -> Self::Output
[src]
Generate a new number using the WyRand
PRNG.
pub fn rand_range(&mut self, min: usize, max: usize) -> Self::Output
[src]
Constrain a randomly generated number to a fixed range.