[comp.sys.ibm.pc] random number generator for pc fortran

fmohamad@macomw.ARPA (farshad mohamadi) (01/14/89)

Folks,

I need a FORTRAN based random number generator [0 to 1] for
pc.  The MS 4.1 compiler that I have doesn't have the ran() 
function, and the enclosed demoran.for in the package is faulty.

If you are reading this after Monday  16,89, 5 pm don't worry to respond,
cause by then I would head for the library to write it myself.

Thanks in advance.

fm@macomw.arpa

jwright@atanasoff.cs.iastate.edu (Jim Wright) (01/14/89)

See:
	CACM Vol. 31 Num. 10
	"Random Number Generators: Good Ones Are Hard to Find"
	S.K.Park and K.W.Miller
	pp. 1192-1201

A very good article - explains problems involved, some solutions
and GIVES EXAMPLES.  It was easy for me to write a *good* random
number generator in C, Pascal and FORTRAN.  They all use the same
algorithm, and they all are verified correct implementations.