SRAND(3f)

DESCRIPTION
SRAND reinitializes the pseudo-random number generator called by RAND and IRAND. The new seed used by the generator is specified by the required argument SEED.

STANDARD
GNU extension

CLASS
Subroutine

SYNTAX
CALL SRAND(SEED)

ARGUMENTS

SEED Shall be a scalar INTEGER(kind=4).

RETURN VALUE
Does not return anything.

EXAMPLE
See RAND and IRAND for examples.

NOTES
The Fortran 2003 standard specifies the intrinsic RANDOM_SEED to initialize the pseudo-random numbers generator and RANDOM_NUMBER to generate pseudo-random numbers. Please note that in GNU Fortran, these two sets of intrinsics (RAND, IRAND and SRAND on the one hand, RANDOM_NUMBER and RANDOM_SEED on the other hand) access two independent pseudo-random number generators.

SEE ALSO
RAND, RANDOM_SEED, RANDOM_NUMBER

AUTHOR

This information was taken from the GFortran documentation (https://gcc.gnu.org/onlinedocs/gcc-5.3.0/gfortran/) and converted to a manpage by AstroFloyd (http://astrofloyd.org).