Functions to generate pseudo-random numbers.
More...
#include <Random.h>
Functions to generate pseudo-random numbers.
Definition at line 21 of file Random.h.
template<class T >
static T DUtils::Random::RandomGaussianValue |
( |
T |
mean, |
|
|
T |
sigma |
|
) |
| |
|
inlinestatic |
Returns a random number from a gaussian distribution
- Parameters
-
mean | |
sigma | standard deviation |
Definition at line 85 of file Random.h.
int DUtils::Random::RandomInt |
( |
int |
min, |
|
|
int |
max |
|
) |
| |
|
static |
Returns a random int in the range [min..max]
- Parameters
-
- Returns
- random int in [min..max]
Definition at line 47 of file Random.cpp.
template<class T >
static T DUtils::Random::RandomValue |
( |
| ) |
|
|
inlinestatic |
Returns a random number in the range [0..1]
- Returns
- random T number in [0..1]
Definition at line 56 of file Random.h.
template<class T >
static T DUtils::Random::RandomValue |
( |
T |
min, |
|
|
T |
max |
|
) |
| |
|
inlinestatic |
Returns a random number in the range [min..max]
- Parameters
-
- Returns
- random T number in [min..max]
Definition at line 67 of file Random.h.
void DUtils::Random::SeedRand |
( |
| ) |
|
|
static |
Sets the random number seed to the current time
Definition at line 18 of file Random.cpp.
void DUtils::Random::SeedRand |
( |
int |
seed | ) |
|
|
static |
Sets the given random number seed
- Parameters
-
Definition at line 33 of file Random.cpp.
void DUtils::Random::SeedRandOnce |
( |
| ) |
|
|
static |
Sets the random number seed to the current time only the first time this function is called
Definition at line 24 of file Random.cpp.
void DUtils::Random::SeedRandOnce |
( |
int |
seed | ) |
|
|
static |
Sets the given random number seed only the first time this function is called
- Parameters
-
Definition at line 38 of file Random.cpp.
bool DUtils::Random::m_already_seeded = false |
|
staticprivate |
The documentation for this class was generated from the following files: