Batch Mode Simulation : The Simulation Control Program : Random Functions : Random Functions In Simulation Control Program Statements

Random Functions In Simulation Control Program Statements

The random functions described, when used in the Simulation Control Program, are treated like any other numeric function in Rational Statemate - where the value returned may be used in the expression. For example, the random function output may be assigned to a variable:

i := rand_uniform(a,b)

A condition’s value can be distributed equally:

random (0) < 0.5

Or an event can be randomly generated:

sc!(e, rand_uniform(x,y))