looking for uniformly distributed (0..1] random number generator

CSSE LAN Test Account lan_csse at netrix.nac.dec.com
Wed Feb 13 03:37:55 AEST 1991


You should also read the article in the Oct 1988 CACM (v.31, no.10) by
Stephen K. Park and Keith W. Miller, titled "Random number generators: 
good ones are hard to find".  Among other things, they point out that
the common library routines on most systems use modular arithmetic with
masking, which is not acceptable, and so they should be replaced.  I've
implemented their (quite simple) example of a minimally-acceptable
uniformly-distributed 32-bit integer on everal systems.  It's each,
and it works quite well.



More information about the Comp.unix.programmer mailing list