Simulation Command Reference : Rational Statemate Actions : RANDOM SOLUTION

RANDOM SOLUTION

The RANDOM SOLUTION statement is used to select a random solution when nondeterminism occurs.

Syntax:
random_solution
 
This statement is used in conjunction with the nondeterminism breakpoint. It allows the model simulation to continue without user intervention when a nondeterministic situation is encountered. One of the solutions is chosen randomly and the simulation proceeds without the need for a Go statement.
Example:
set breakpoint [ nondeterminism ]
do
random_solution ;
write (“nondeterministic situation solved randomly. \n”)
end breakpoint