MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_gaussian_random()

MAYAFLUX_API double MayaFlux::get_gaussian_random ( double  start = 0,
double  end = 1 
)

Generates a gaussian (normal) random number.

Parameters
startLower bound for scaling
endUpper bound for scaling
Returns
Random number with gaussian distribution

Uses the random number generator from the default engine.

Definition at line 19 of file API/Random.cpp.

20{
21 auto& engine = get_random_engine();
22 engine.set_algorithm(Kinesis::Stochastic::Algorithm::NORMAL);
23 return engine(start, end);
24}
Kinesis::Stochastic::Stochastic & get_random_engine()
Get reference to the default random engine.
Definition API/Random.cpp:9

References get_random_engine(), and MayaFlux::Kinesis::Stochastic::NORMAL.

+ Here is the call graph for this function: