BER(<real expression>, / <stream> /);Returns the BOOLEAN value TRUE with a probability equal to the value of <real expression> and FALSE with a probability of 1 - <real expression>. The probabilities are computed with random numbers taken from the stream indicated by <stream>. This is an integer from 1 to 10. If omitted, 1 is assumed.
Example:
IF BER(0.6) THEN SENDTO(LargeDep) ELSE SENDTO(SmallDep);At random 60 % of the times the messages are sent to LargeDep. 40 % to SmallDep.