Random number generator class.
More...
#include <Rand.hh>
List of all members.
Static Public Member Functions |
| static double | GetDblUniform (double min=0, double max=1) |
| | Get a double from a uniform distribution.
|
| static double | GetDblNormal (double mean=0, double sigma=1) |
| | Get a double from a normal distribution.
|
| static int | GetIntUniform (int min, int max) |
| | Get a integer from a uniform distribution.
|
| static int | GetIntNormal (int mean, int sigma) |
| | Get a double from a normal distribution.
|
Detailed Description
Random number generator class.
Member Function Documentation
| static double GetDblNormal |
( |
double |
mean = 0, |
|
|
double |
sigma = 1 |
|
) |
| [static] |
Get a double from a normal distribution.
- Parameters:
-
| mean | Mean value for the distribution |
| sigma | Sigma value for the distribution |
| static double GetDblUniform |
( |
double |
min = 0, |
|
|
double |
max = 1 |
|
) |
| [static] |
Get a double from a uniform distribution.
- Parameters:
-
| min | Minimum bound for the random number |
| max | Maximum bound for the random number |
| static int GetIntNormal |
( |
int |
mean, |
|
|
int |
sigma |
|
) |
| [static] |
Get a double from a normal distribution.
- Parameters:
-
| mean | Mean value for the distribution |
| sigma | Sigma value for the distribution |
| static int GetIntUniform |
( |
int |
min, |
|
|
int |
max |
|
) |
| [static] |
Get a integer from a uniform distribution.
- Parameters:
-
| min | Minimum bound for the random number |
| max | Maximum bound for the random number |
The documentation for this class was generated from the following file: