57 void seed(
unsigned long);
58 void seed(
const unsigned long*,
int size);
66 static const int n = 624,
m = 397;
72 unsigned long twiddle(
unsigned long,
unsigned long);
81 return (((u & 0x80000000UL) | (v & 0x7FFFFFFFUL)) >> 1)
82 ^ ((v & 1UL) * 0x9908B0DFUL);
93 x ^= (x << 7) & 0x9D2C5680UL;
94 x ^= (x << 15) & 0xEFC60000UL;
106 return static_cast<double>(
rand_int32()) * (1. / 4294967296.); }
120 return static_cast<double>(
rand_int32()) * (1. / 4294967295.); }
134 return (static_cast<double>(
rand_int32()) + .5) * (1. / 4294967296.); }
148 return (static_cast<double>(
rand_int32() >> 5) * 67108864. +
149 static_cast<double>(
rand_int32() >> 6)) * (1. / 9007199254740992.); }
MTRand_open(const unsigned long *seed, int size)
MTRand(const unsigned long *seed, int size)
MTRand_int32(unsigned long s)
MTRand_closed(const unsigned long *seed, int size)
unsigned long operator()()
MTRand_int32(const unsigned long *array, int size)
MTRand_closed(unsigned long seed)
MTRand53(const unsigned long *seed, int size)
unsigned long twiddle(unsigned long, unsigned long)
MTRand_open(unsigned long seed)
TFSIMD_FORCE_INLINE const tfScalar & x() const
static unsigned long state[n]
void operator=(const MTRand_int32 &)
unsigned long rand_int32()
MTRand(unsigned long seed)
MTRand53(unsigned long seed)