RANDOM(3F)RANDOM(3F)NAME
- generate pseudorandom numbers from a seed
SYNOPSIS
random_number (harvest)
random_seed( size, put, get)
DESCRIPTION
The Fortran 90 subroutine random_number returns a sequence of
pseudorandom numbers in harvest. The argument must be of real type and of
intent out. It can be a scalar or an array variable, and is set to
contain pseudorandom numbers from a uniform distribution in the range
greater than or equal to zero and less than one.
The random_seed subroutine allows an inquiry to be made about the size or
value of the seed array, and also allows the seed to be reset. Its
optional arguments have the following form:
size if present, must be scalar and of default integer type. It is
set to the number n of integers used to hold the seed.
put if present, must be an integer array of rank one and size greater
than or equal to n. It is used to set the seed value.
get if present, must be an integer array of rank one and size greater
than or equal to n. It is set by default to the current value of
the seed.
Page 1