fn twist(&mut self) {
        for i in 0..(N - 1) {
            let x = (self.state[i] & UPPER_MASK) + (self.state[(i + 1) % N] & LOWER_MASK);
            let mut x_a = x >> 1;
            if (x % 2) != 0 {
                // lowest bit of x is 1
                x_a = x_a ^ 0x9908B0DF;
            }
            self.state[i] = self.state[(i + M) % N] ^ x_a;
        }
        self.index = 0;
    }
// Generate the next N values from the series x_i
Generate the next N values from the series x_i
Generate the next N values from the series x_i
fn twist(&mut self) {
        for i in 0..(N - 1) {
            let x = (self.state[i] & UPPER_MASK) + (self.state[(i + 1) % N] & LOWER_MASK);
            let mut x_a = x >> 1;
            if (x % 2) != 0 {
                // lowest bit of x is 1
                x_a = x_a ^ 0x9908B0DF;
            }
            self.state[i] = self.state[(i + M) % N] ^ x_a;
        }
        self.index = 0;
    }
fn twist ( & mut self ) { for i in 0 .. ( N - 1 ) { let x = ( self . state [ i ] & UPPER_MASK ) + ( self . state [ ( i + 1 ) % N ] & LOWER_MASK ) ; let mut x_a = x >> 1 ; if ( x % 2 ) != 0 { // lowest bit of x is 1 x_a = x_a ^ 0x9908B0DF ; } self . state [ i ] = self . state [ ( i + M ) % N ] ^ x_a ; } self . index = 0 ; }
Generate the next N values from the series x_i
Generate the next N values from the series x_i
&mut self