Struct mersenne_twister::MT19937
[−]
[src]
pub struct MT19937 { // some fields omitted }
The 32-bit flavor of the Mersenne Twister pseudorandom number generator.
Methods
impl MT19937
fn new_unseeded() -> MT19937
Create a new Mersenne Twister random number generator using the default fixed seed.
fn recover(samples: &[u32]) -> MT19937
Recover the internal state of a Mersenne Twister instance from 624 consecutive outputs of the algorithm.
The returned MT19937
is guaranteed to identically reproduce
subsequent outputs of the RNG that was sampled. This is why
one does not use Mersenne Twister in cryptography.
Panics if the length of the slice is not exactly 624.