#include <SimpleRandomNumberGenerator.h>
Public Member Functions | |
SimpleRandomNumberGenerator () | |
double | uniformRand () |
double | uniformRand (double a, double b) |
int | uniformRandInt (int a, int b) |
double | normalRand () |
double | normalRand (double mu, double sigma) |
void | seed (long idum) |
Definition at line 4 of file SimpleRandomNumberGenerator.h.
SimpleRandomNumberGenerator::SimpleRandomNumberGenerator | ( | ) | [inline] |
Definition at line 8 of file SimpleRandomNumberGenerator.h.
double SimpleRandomNumberGenerator::uniformRand | ( | void | ) |
Returns a random number from the interval (0,1).
Definition at line 97 of file SimpleRandomNumberGenerator.cpp.
Referenced by normalRand(), uniformRand(), and uniformRandInt().
Definition at line 15 of file SimpleRandomNumberGenerator.h.
References uniformRand().
Definition at line 17 of file SimpleRandomNumberGenerator.h.
References uniformRand().
double SimpleRandomNumberGenerator::normalRand | ( | void | ) |
Gaussion random variable with zero mean and variace 1.0. Taken from Numerical Recipies in C.
Definition at line 103 of file SimpleRandomNumberGenerator.cpp.
References uniformRand().
Referenced by normalRand().
Definition at line 20 of file SimpleRandomNumberGenerator.h.
References normalRand().
void SimpleRandomNumberGenerator::seed | ( | long | idum | ) |
Set the seed of the random number generator.
Definition at line 90 of file SimpleRandomNumberGenerator.cpp.