17 static const int IA = 16807;
18 static const int IM = 2147483647;
19 static const double AM;
20 static const int IQ = 127773;
21 static const int IR = 2836;
23 static double ran01(
long *idum);
29 static long int set_seed_usec();
32 static double nextDouble() {
return ran01(&seed);}
35 static double nextDouble(
double lbound,
double ubound);
38 static double nextDouble(
double ubound);
41 static int nextInt(
int lbound,
int ubound);
44 static int nextInt(
int ubound);
47 static double nextNormGaussian();
50 static double nextGaussian(
double mean,
double sigma);
53 static bool nextBoolean();