#include <stdio.h>#include <time.h>#include <limits.h>#include "twister.h"Include dependency graph for twister.c:

Go to the source code of this file.
Defines | |
| #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 | |
| unsigned long | CreateTwisterSeed () |
| 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) |
| double | RandTwisterDouble () |
| unsigned | RandTwisterUnsigned () |
| void | SetTwisterSeed (unsigned long seed) |
Variables | |
| unsigned long | mt [N] |
| int | mti = N+1 |
|
|
|
|
|
|
|
|
Definition at line 53 of file twister.c. Referenced by genrand_int32(). |
|
|
Definition at line 51 of file twister.c. Referenced by init_by_array(), and init_genrand(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 109 of file twister.c. References MATRIX_A. |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 217 of file twister.c. Referenced by mems::GenericInterval< GappedBaseImpl >::Marble(). |
|
|
|
|
|
|
|
|
Definition at line 60 of file twister.c. Referenced by init_by_array(), and init_genrand(). |
|
|
Definition at line 61 of file twister.c. Referenced by init_genrand(). |
1.3.6