Friday, January 30, 2015

Using Fortran90's intrinsic RANDOM_NUMBER subroutine

There are three steps involved:
  1. Allocating the seed
  2. Setting the seed using either (a) the system clock, or (b) a user-defined number
  3. Harvesting the random numbers
Here is a minimal program which demonstrates the use of Fortran's intrinsic random number generator

No comments: