Random number generator class.
More...
#include <gzmath/gzmath.hh>
Random number generator class.
static double GetDblNormal |
( |
double |
_mean = 0 , |
|
|
double |
_sigma = 1 |
|
) |
| |
|
static |
Get a double from a normal distribution.
- Parameters
-
[in] | _mean | Mean value for the distribution |
[in] | _sigma | Sigma value for the distribution |
- Deprecated:
- See ignition::math::Rand::DblNormal
static double GetDblUniform |
( |
double |
_min = 0 , |
|
|
double |
_max = 1 |
|
) |
| |
|
static |
Get a double from a uniform distribution.
- Parameters
-
[in] | _min | Minimum bound for the random number |
[in] | _max | Maximum bound for the random number |
- Deprecated:
- See ignition::math::Rand::DblUniform
static int GetIntNormal |
( |
int |
_mean, |
|
|
int |
_sigma |
|
) |
| |
|
static |
Get a double from a normal distribution.
- Parameters
-
[in] | _mean | Mean value for the distribution |
[in] | _sigma | Sigma value for the distribution |
- Deprecated:
- See ignition::math::Rand::IntNormal
static int GetIntUniform |
( |
int |
_min, |
|
|
int |
_max |
|
) |
| |
|
static |
Get a integer from a uniform distribution.
- Parameters
-
[in] | _min | Minimum bound for the random number |
[in] | _max | Maximum bound for the random number |
- Deprecated:
- See ignition::math::Rand::IntUniform
static uint32_t GetSeed |
( |
| ) |
|
|
static |
Get the seed value.
- Returns
- The seed value used to initialize the random number generator.
- Deprecated:
- See unsigned int ignition::math::Rand::Seed()
static void SetSeed |
( |
uint32_t |
_seed | ) |
|
|
static |
Set the seed value.
- Parameters
-
[in] | _seed | The seed used to initialize the randon number generator. |
- Deprecated:
- See void ignition::math::Rand::Seed(unsigned int)
The documentation for this class was generated from the following file: