mt19937ar.h
Go to the documentation of this file.
1 #ifndef MT_RAND_H
2 #define MT_RAND_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 void init_by_array(unsigned long init_key[], int key_length);
9 
10 void init_genrand(unsigned long s);
11 
12 /* generates a random number on [0,1]-real-interval */
13 double genrand_real1(void);
14 
15 /* generates a random number on [0,1)-real-interval */
16 double genrand_real2(void);
17 
18 /* generates a random number on (0,1)-real-interval */
19 double genrand_real3(void);
20 
21 /* generates a random number on (0,1)-real-interval */
22 double genrand_real3(void);
23 
24 /* generates a random number on [0,1) with 53-bit resolution*/
25 double genrand_res53(void);
26 
27 #ifdef __cplusplus
28 }
29 #endif
30 
31 #endif // MT_RAND_H
32 
void init_by_array(unsigned long init_key[], int key_length)
Definition: mt19937ar.c:80
double genrand_res53(void)
Definition: mt19937ar.c:171
double genrand_real2(void)
Definition: mt19937ar.c:157
void init_genrand(unsigned long s)
Definition: mt19937ar.c:61
double genrand_real1(void)
Definition: mt19937ar.c:150
double genrand_real3(void)
Definition: mt19937ar.c:164