Re: random numbers in fortran



The following gives an alternative (subroutime RAND) to builtin
Random_Number, and also gives subprograms to sample from the first N
integers with replacement (subroutine IRAND)
and without replacement (subroutine RPERM).
See comments in Subroutine RAND for literature references and
cycle lengh.

http://ftp.cac.psu.edu/pub/ger/fortran/hdk/byterand.for

Skip Knoble

On 25 Nov 2006 13:59:39 -0800, "lane straatman" <grumpy196884@xxxxxxxxxxx> wrote:

-|I'm in the process of going digital and must rely on the terminal at
-|the library that uses Google to access usenet. I thought from posts I
-|had seen through google posting that quoting context would be
-|difficult. It is not.
-|
-|MRC seems to be a little thin on producing random numbers. This is not
-|a negative criticism: if everything were covered, you'd need a
-|forklift to pack the thing around. What I always did in C was seed
-|srand with the time and then call rand(), making adjustments for the
-|number I needed to be expressed in terms of RANDMAX.
-|
-|I would think that there would be a tested module with open source out
-|there in fortran for producing a rand in a range. Short of that, I
-|guess I'll have to roll my own. Is anyone aware of such a module?
-|
-|LS

.