random_number(3I)
RANDOM_NUMBER - Returns pseudorandom numbers
As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.19.
NAME RANDOM_NUMBER - Returns pseudorandom numbers SYNOPSIS CALL RANDOM_NUMBER ([HARVEST=]harvest) STANDARDS Fortran DESCRIPTION The RANDOM_NUMBER intrinsic subroutine returns one pseudorandom number or an array of pseudorandom numbers from the uniform distribution over the range 0 <= x < 1. It accepts the following argument: harvest Must be of type real. It is an output argument. It may be a scalar or an array variable. It is set to contain pseudorandom numbers from the uniform distribution in the interval 0 <= x < 1. On IRIX systems, harvest is 32 bits. The name of this intrinsic cannot be passed as an argument. EXAMPLES REAL X, Y(10,10) ! Initialize X with a pseudorandom number CALL RANDOM_NUMBER(HARVEST=X) CALL RANDOM_NUMBER(Y) ! X and Y contain uniformly distributed random numbers SEE ALSO RANDOM_SEED(3I), RANF(3I)