#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | N 624 |
#define | M 397 |
#define | MATRIX_A 0x9908b0dfUL /* constant vector a */ |
#define | UPPER_MASK 0x80000000UL /* most significant w-r bits */ |
#define | LOWER_MASK 0x7fffffffUL /* least significant r bits */ |
Functions | |
void | init_genrand (unsigned long s) |
void | init_by_array (unsigned long init_key[], int key_length) |
unsigned long | genrand_int32 (void) |
long | genrand_int31 (void) |
double | genrand_real1 (void) |
double | genrand_real2 (void) |
double | genrand_real3 (void) |
double | genrand_res53 (void) |
Variables | |
static unsigned long | mt [N] |
static int | mti =N+1 |
#define LOWER_MASK 0x7fffffffUL /* least significant r bits */ |
Definition at line 27 of file mt19937ar.cxx.
Referenced by genrand_int32().
#define M 397 |
Definition at line 24 of file mt19937ar.cxx.
Referenced by genrand_int32().
#define MATRIX_A 0x9908b0dfUL /* constant vector a */ |
Definition at line 25 of file mt19937ar.cxx.
Referenced by genrand_int32().
#define N 624 |
Definition at line 23 of file mt19937ar.cxx.
Referenced by genrand_int32(), init_by_array(), and init_genrand().
#define UPPER_MASK 0x80000000UL /* most significant w-r bits */ |
Definition at line 26 of file mt19937ar.cxx.
Referenced by genrand_int32().
long genrand_int31 | ( | void | ) |
Definition at line 116 of file mt19937ar.cxx.
References genrand_int32().
unsigned long genrand_int32 | ( | void | ) |
Definition at line 78 of file mt19937ar.cxx.
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().
double genrand_real1 | ( | void | ) |
Definition at line 122 of file mt19937ar.cxx.
References genrand_int32().
Referenced by Sphere::fill(), and Cube::tire().
double genrand_real2 | ( | void | ) |
Definition at line 129 of file mt19937ar.cxx.
References genrand_int32().
double genrand_real3 | ( | void | ) |
Definition at line 136 of file mt19937ar.cxx.
References genrand_int32().
Referenced by randGauss().
double genrand_res53 | ( | void | ) |
Definition at line 143 of file mt19937ar.cxx.
References gui.CONNECTOR::a, gui.CONNECTOR::b, and genrand_int32().
void init_by_array | ( | unsigned long | init_key[], |
int | key_length | ||
) |
Definition at line 52 of file mt19937ar.cxx.
References CORBAEngineTest::i, init_genrand(), mt, and N.
Referenced by initrand().
void init_genrand | ( | unsigned long | s | ) |
|
static |
Definition at line 29 of file mt19937ar.cxx.
Referenced by genrand_int32(), init_by_array(), and init_genrand().
|
static |
Definition at line 30 of file mt19937ar.cxx.
Referenced by genrand_int32(), and init_genrand().