Lines Matching refs:mti
53 MersenneTwister::MersenneTwister() : mt(N), mti(N+1) {
63 for (mti=1; mti<N; mti++) {
64 mt[mti] =
65 (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti);
70 mt[mti] &= 0xffffffffUL;
111 if (mti >= N) { /* generate N words at one time */
114 if (mti == N+1) /* if init_genrand() has not been called, */
128 mti = 0;
131 y = mt[mti++];