The RANDOM function returns a numeric value that is a pseudo-random number from a rectangular distribution.
The function type is numeric.
Format
>>-FUNCTION RANDOM--+------------------+-----------------------><
'-(--argument-1--)-'
If a subsequent reference specifies argument-1, a new sequence of pseudo-random numbers is started.
If the first reference to this function in the run unit does not specify argument-1, the seed value used will be zero.
In each case, subsequent references without specifying argument-1 return the next number in the current sequence.
The returned value is exclusively between zero and one.
For a given seed value, the sequence of pseudorandom numbers will always be the same.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.