ranval

(Real*4; output)    Argument through which the random 
value is returned.

Remarks

Run-Time Subroutine    Returns a pseudorandom real 
value greater than or equal to zero and less than one.
A given seed other than -1 always produces the same 
sequence of values from RANDOM. SEED(-1) is equivalent 
to RND$TIMESEED, which always produces a different 
sequence.
If SEED is not called before the first call to 
RANDOM, RANDOM always begins with a seed value of 
one. If a program must have a different pseudorandom 
sequence each time it runs, pass the constant 
RND$TIMESEED to the SEED routine.


seedval

(Integer*4; input)    Starting point for RANDOM.

Remarks

Run-Time Subroutine    Changes the starting point 
of the pseudorandom number generator.
SEED uses seedval to establish the starting point 
of the pseudorandom number generator. A given seed 
always produces the same sequence of values from 
RANDOM.  Use the constant RND$TIMESEED to seed 
with the current time. (Use of the constant value 
-1 is equivalent to using RND$TIMESEED.)
If SEED is not called before the first call to 
RANDOM, RANDOM always begins with a seed value 
of one.