RandomGaussian generates pseudo-random numbers from a normal (gaussian) distribution.
More...
#include <Nimble/Random.hpp>
|
| float | rand () |
| | Generate a random number from the distribution. More... |
| |
| | RandomGaussian (float mean=0.0f, float stdDev=1.0f, unsigned long seed=std::mt19937::default_seed) |
| | Construct a generator with given parameters for the distribution of the random numbers. More... |
| |
RandomGaussian generates pseudo-random numbers from a normal (gaussian) distribution.
| Nimble::RandomGaussian::RandomGaussian |
( |
float |
mean = 0.0f, |
|
|
float |
stdDev = 1.0f, |
|
|
unsigned long |
seed = std::mt19937::default_seed |
|
) |
| |
|
inline |
Construct a generator with given parameters for the distribution of the random numbers.
- Parameters
-
| mean | the mean of the normal distribution |
| stdDev | the standard deviation for the normal distribution |
| seed | seed value for the pseudo-random sequence |
| float Nimble::RandomGaussian::rand |
( |
| ) |
|
|
inline |
Generate a random number from the distribution.
- Returns
- a pseudo-random number