DUtils::Random Class Reference
Functions to generate pseudo-random numbers.
More...
#include <Random.h>
List of all members.
Detailed Description
Functions to generate pseudo-random numbers.
Member Function Documentation
template<class T >
static T DUtils::Random::RandomGaussianValue |
( |
T |
mean, |
|
|
T |
sigma | |
|
) |
| | [inline, static] |
Returns a random number from a gaussian distribution
- Parameters:
-
| mean | |
| sigma | standard deviation |
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]
template<class T >
static T DUtils::Random::RandomValue |
( |
T |
min, |
|
|
T |
max | |
|
) |
| | [inline, static] |
Returns a random number in the range [min..max]
- Parameters:
-
- Returns:
- random T number in [min..max]
template<class T >
static T DUtils::Random::RandomValue |
( |
|
) |
[inline, static] |
Returns a random number in the range [0..1]
- Returns:
- random T number in [0..1]
void DUtils::Random::SeedRand |
( |
int |
seed |
) |
[static] |
Sets the given random number seed
- Parameters:
-
void DUtils::Random::SeedRand |
( |
|
) |
[static] |
Sets the random number seed to the current time
void DUtils::Random::SeedRandOnce |
( |
int |
seed |
) |
[static] |
Sets the given random number seed only the first time this function is called
- Parameters:
-
void DUtils::Random::SeedRandOnce |
( |
|
) |
[static] |
Sets the random number seed to the current time only the first time this function is called
The documentation for this class was generated from the following files: