The FORTRAN GNA (rand ()) seems to be bad, this is because it is proved to be worse than very simple random number generators. For example, in my simulations the GNA below
SUBROUTINE GNA(iiseed)
USE Variaveis
parameter (ia=843314861,ib=453816693,m=1073741824, r231=1./2147483648.)
INTEGER :: iiseed
iiseed = ib + ia*iiseed
if (iiseed.lt.0) iiseed = (iiseed+m) + m
RndNum = iiseed*r231
END SUBROUTINE GNA
proved to be better than the FORTRAN rand (), and this GNA is quite simple. Would anyone know to tell me a good random number generator (GNA) in FORTRAN. Something that combines computational time efficiency and randomness of generated numbers.