Random Number Procedures: table

Note: Square brackets [...] denote optional arguments.

Name Procedure Type Description
RAN Intrinsic function result = RAN(i). Returns the next number from a sequence of pseudorandom numbers of uniform distribution over the range 0 to 1.
RANDOM Run-time Subroutine CALL RANDOM(ranval). Returns a pseudorandom real value greater than or equal to zero and less than one.
RANDOM_NUMBER Intrinsic Subroutine CALL RANDOM_NUMBER(harvest). Returns a pseudorandom real value greater than or equal to zero and less than one.
RANDOM_SEED Intrinsic Subroutine CALL RANDOM_SEED([size] [, put] [, get]). Changes the starting point of RANDOM_NUMBER; takes one or no arguments.
RANDU Intrinsic Subroutine CALL RANDU(i1, i2, x). Computes a pseudorandom number as a single-precision value.
SEED Run-time Subroutine CALL SEED(seedval). Changes the starting point of RANDOM.