Contents - Index
RANDG returns a randomly-selected value from a Gaussian distribution having a specified mean and distribution, which are provided as parameters. Note that Random function returns a random value from a uniform distribution.
If a third argument other than 0 is provided, it is used as a seed for the random number generator routines. The argument should be an integer. The random number generator will always return the same value if a constant value is provided for the seed, e.g.,
RandG(Mean, StdDev, 99)
If the third argument is 0, EES will generate a random number and then use this number each time the equation is evaluated during the solving process. Each new solving process will result in a different random number.
Used within Functions and Procedures with the
Repeat Until or other logical expressions, the RandG function can be used to implement Monte Carlo type calculations.
See also: Random