All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Nimble::RandomGaussian Class Reference

RandomGaussian generates pseudo-random numbers from a normal (gaussian) distribution. More...

#include <Nimble/Random.hpp>

Public Member Functions

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...
 

Detailed Description

RandomGaussian generates pseudo-random numbers from a normal (gaussian) distribution.

Constructor & Destructor Documentation

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
meanthe mean of the normal distribution
stdDevthe standard deviation for the normal distribution
seedseed value for the pseudo-random sequence

Member Function Documentation

float Nimble::RandomGaussian::rand ( )
inline

Generate a random number from the distribution.

Returns
a pseudo-random number