#include "SimpleRandomNumberGenerator.h"
#include <stdlib.h>
#include <math.h>
Go to the source code of this file.
Defines | |
#define | IM1 2147483563 |
#define | IM2 2147483399 |
#define | AM (1.0/IM1) |
#define | IMM1 (IM1-1) |
#define | IA1 40014 |
#define | IA2 40692 |
#define | IQ1 53668 |
#define | IQ2 52774 |
#define | IR1 12211 |
#define | IR2 3791 |
#define | NDIV (1+IMM1/NTAB) |
#define | EPS 1.2e-7 |
#define | NTAB 32 |
#define | RNMX (1.0-EPS) |
The core is the function uniform_rand() which is taken from Numerical Recipies in C. It is used to derive the normal distributed generator normrnd().
Definition in file SimpleRandomNumberGenerator.cpp.
#define AM (1.0/IM1) |
#define EPS 1.2e-7 |
#define IA1 40014 |
#define IA2 40692 |
#define IM1 2147483563 |
#define IM2 2147483399 |
#define IMM1 (IM1-1) |
#define IQ1 53668 |
#define IQ2 52774 |
#define IR1 12211 |
#define IR2 3791 |
#define NDIV (1+IMM1/NTAB) |
#define NTAB 32 |
#define RNMX (1.0-EPS) |