#include "NFutil.hh"
#include "MTrand/mtrand.h"
#include <time.h>
#include <cstdlib>
#include <math.h>
Functions | |
| double | NFutil::RANDOM (double max) |
| Uniform random number on the interval (0,max]. | |
| double | NFutil::RANDOM_CLOSED () |
| Uniform random number on the interval (0,1). | |
| double | NFutil::RANDOM_GAUSSIAN () |
| Normally distributed random number with mean 0 and variance 1. | |
| int | NFutil::RANDOM_INT (unsigned long min, unsigned long max) |
| Uniform random number on the interval [min,max]. | |
| void | NFutil::SEED_RANDOM (unsigned long seed) |
| Seeds the random number generator used in all simulations. | |
Variables | |
| static int | initflag = 1 |
| static bool | haveNextGaussian = false |
| static double | nextGaussian = 0 |
| static MTRand_int32 | iRand |
| static MTRand | dRand |
| static MTRand_closed | dRandClosed |
| static MTRand_open | dRandOpen |
MTRand_closed dRandClosed [static] |
MTRand_open dRandOpen [static] |
bool haveNextGaussian = false [static] |
int initflag = 1 [static] |
MTRand_int32 iRand [static] |
double nextGaussian = 0 [static] |
1.5.4