#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | LOWER_MASK 0x7fffffffUL /* least significant r bits */ |
#define | M 397 |
#define | MATRIX_A 0x9908b0dfUL /* constant vector a */ |
#define | N 624 |
#define | UPPER_MASK 0x80000000UL /* most significant w-r bits */ |
Functions | |
long | genrand_int31 (void) |
unsigned long | genrand_int32 (void) |
double | genrand_real1 (void) |
double | genrand_real2 (void) |
double | genrand_real3 (void) |
double | genrand_res53 (void) |
void | init_by_array (unsigned long init_key[], int key_length) |
void | init_genrand (unsigned long s) |
Variables | |
static unsigned long | mt [N] |
static int | mti =N+1 |
Macro Definition Documentation
◆ LOWER_MASK
#define LOWER_MASK 0x7fffffffUL /* least significant r bits */ |
Definition at line 51 of file mt19937ar.c.
◆ M
#define M 397 |
Definition at line 48 of file mt19937ar.c.
◆ MATRIX_A
#define MATRIX_A 0x9908b0dfUL /* constant vector a */ |
Definition at line 49 of file mt19937ar.c.
◆ N
#define N 624 |
Definition at line 47 of file mt19937ar.c.
◆ UPPER_MASK
#define UPPER_MASK 0x80000000UL /* most significant w-r bits */ |
Definition at line 50 of file mt19937ar.c.
Function Documentation
◆ genrand_int31()
long genrand_int31 | ( | void | ) |
Definition at line 144 of file mt19937ar.c.
References genrand_int32().
◆ genrand_int32()
unsigned long genrand_int32 | ( | void | ) |
Definition at line 106 of file mt19937ar.c.
References init_genrand(), LOWER_MASK, M, MATRIX_A, mt, mti, N, and UPPER_MASK.
Referenced by genrand_int31(), genrand_real1(), genrand_real2(), genrand_real3(), and genrand_res53().
◆ genrand_real1()
double genrand_real1 | ( | void | ) |
Definition at line 150 of file mt19937ar.c.
References genrand_int32().
Referenced by generateMeasurementOutcome().
◆ genrand_real2()
double genrand_real2 | ( | void | ) |
Definition at line 157 of file mt19937ar.c.
References genrand_int32().
◆ genrand_real3()
double genrand_real3 | ( | void | ) |
◆ genrand_res53()
double genrand_res53 | ( | void | ) |
◆ init_by_array()
void init_by_array | ( | unsigned long | init_key[], |
int | key_length | ||
) |
Definition at line 80 of file mt19937ar.c.
References init_genrand(), mt, and N.
Referenced by seedQuEST().
◆ init_genrand()
void init_genrand | ( | unsigned long | s | ) |
Variable Documentation
◆ mt
|
static |
Definition at line 57 of file mt19937ar.c.
Referenced by genrand_int32(), init_by_array(), and init_genrand().
◆ mti
|
static |
Definition at line 58 of file mt19937ar.c.
Referenced by genrand_int32(), and init_genrand().