19 #ifndef TENSOR_RAND_MT_H
20 #define TENSOR_RAND_MT_H
22 #include "tensor/config.h"
27 #if !defined(TENSOR_64BITS)
33 typedef uint32_t rand_uint;
35 extern void init_genrand(uint32_t s);
36 extern void init_by_array(uint32_t init_key[],
int key_length);
39 extern uint32_t genrand_int32(
void);
42 extern int32_t genrand_int31(
void);
50 typedef uint64_t rand_uint;
52 extern void init_genrand(uint64_t s);
53 extern void init_by_array(uint64_t init_key[],
int key_length);
56 extern uint64_t genrand_int64(
void);
59 extern int64_t genrand_int63(
void);
64 extern double genrand_real1(
void);
67 extern double genrand_real2(
void);
70 extern double genrand_real3(
void);
73 extern double genrand_res53(
void);
77 #endif // !TENSOR_RAND_MT_H