FORTRAN90's Random Number Generator (RNG) Routines

F90_RANDOM is a directory of FORTRAN90 programs which illustrate the use of Fortran's random number generator (RNG) routines.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


F90_RANDOM is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

ASA183, a FORTRAN90 library which implements a random number generator (RNG), by Wichman and Hill. This is a FORTRAN90 version of Applied Statistics Algorithm 183.

NORMAL, a FORTRAN90 library which computes elements of a sequence of pseudorandom normally distributed values.

RANDLC, a FORTRAN90 library which generates a sequence of pseudorandom numbers, used by the NAS Benchmark programs.

RNGLIB, a FORTRAN90 library which implements a random number generator (RNG) with splitting facilities, allowing multiple independent streams to be computed, by L'Ecuyer and Cote.

UNIFORM, a FORTRAN90 library which computes elements of a uniform pseudorandom sequence.


  1. Jeanne Adams, Walter Brainerd, Jeanne Martin, Brian Smith, Jerrold Wagener,
    Fortran90 Handbook,
    Complete ANSI/ISO Reference,
    McGraw Hill, 1992,
    ISBN: 0-07-000406-4,
    LC: QA76.73.F28.F67.
  2. Ian Chivers, Jane Sleightholme,
    Introduction to Programming with Fortran,
    Springer, 2005,
    ISBN: 1846280532,
    LC: QA76.73.F29.C48.
  3. Miles Ellis, Ivor Philips, Thomas Lahey,
    Fortran90 Programming,
    Addison-Wesley, 1994,
    ISBN: 0-201-54446-6,
    LC: QA76.73.F25E435.
  4. Michael Metcalf,
    Fortran95/2003 Explained,
    Oxford, 2004,
    ISBN: 0198526938,
    LC: QA76.73.F235.M48.
  5. Larry Nyhoff, Sanford Leestma,
    Introduction to Fortran90 for Engineers and Scientists,
    Prentice-Hall, 1996,
    ISBN: 0135052157,
    LC: QA76.73.F25N925.
  6. James Ortega,
    An Introduction to FORTRAN90 for Scientific Computing,
    Oxford, 1994,
    ISBN: 0-19-517213-2,
    LC: QA76.73.O75.

Examples and Tests:

RANDOM_TEST tests the random number routines.

You can go up one level to the FORTRAN90 source codes.

Last revised on 06 September 2012.