This function generates a random variable, from a exponentuial
distribution with the input of mean mu. The random
variable might be the duration of a specific event, for instance
the time to keep the HVAC on.
The input mu denotes the mean value of the
exponential distribution. Higher mu indicates a higher
chance to generate a larger output y.
function exponentialVariableGeneration extends Modelica.Icons.Function; input Real mu "Mean exponential distribution"; input Integer stateIn[Modelica.Math.Random.Generators.Xorshift1024star.nState] "State of the random number generator"; output Real y "Random number"; output Integer stateOut[Modelica.Math.Random.Generators.Xorshift1024star.nState] "New state of the random number generator"; end exponentialVariableGeneration;
localSeed.