pub fn new(seed: u32) -> Self {
        let mut state = vec![seed];
        for i in 1..=(N - 1) {
            let val: u64 = (1812433253 as u64) * (state[i - 1] ^ (state[i - 1] >> (W - 2))) as u64
                + (i as u64);
            state.push(val as u32);
        }
        MersenneRng {
            index: N,
            state: state,
        }
    }
// Initialize the generator from a seed
Initialize the generator from a seed
Initialize the generator from a seed
pub fn new(seed: u32) -> Self {
        let mut state = vec![seed];
        for i in 1..=(N - 1) {
            let val: u64 = (1812433253 as u64) * (state[i - 1] ^ (state[i - 1] >> (W - 2))) as u64
                + (i as u64);
            state.push(val as u32);
        }
        MersenneRng {
            index: N,
            state: state,
        }
    }
pub fn new ( seed : u32 ) -> Self { let mut state = vec ! [ seed ] ; for i in 1 ..= ( N - 1 ) { let val : u64 = ( 1812433253 as u64 ) * ( state [ i - 1 ] ^ ( state [ i - 1 ] >> ( W - 2 ) ) ) as u64 + ( i as u64 ) ; state . push ( val as u32 ) ; } MersenneRng { index : N , state : state , } }
Initialize the generator from a seed
Initialize the generator from a seed
seed
u32