The RANDOM_NUMBER subroutine returns a uniformly distributed pseudorandom number or numbers in the range
Syntax
RANDOM_NUMBER (harvest)
harvest is an INTENT(OUT) scalar or array of type REAL. On return, its value is a set of pseudorandom numbers uniformly distributed in the range
The random number generator uses a multiplicative congruential algorithm with a period of approximately 238
Example
call random_number(x) ! each element of x is assigned
! a pseudorandom number