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

◆ get_exponential_random()

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

Generates an exponential random number.

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

Uses the random number generator from the default engine.

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

27{
28 auto& engine = get_random_engine();
29 engine.set_algorithm(Kinesis::Stochastic::Algorithm::EXPONENTIAL);
30 return engine(start, end);
31}
Kinesis::Stochastic::Stochastic & get_random_engine()
Get reference to the default random engine.
Definition API/Random.cpp:9

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

+ Here is the call graph for this function: