Mail Archives: djgpp-workers/1998/09/29/20:53:34
DJ Delorie wrote:
>
> > I might be able to make a contribution here. Recently, I completed a
> > paper on combined random number generators, "Quick and Portable Random
> > Number Generators," with Dr. Gerald P. Dwyer, formerly with Clemson
> > University and now at the Atlanta Fed. The supporting random number
> > generator is very well behaved and has a period of about 2^62. This
> > is certainly long enough to outlive the expected life of the universe.
>
> rand() is a sufficiently good RNG with a long period. The random()
> and srandom() functions use a particular algorithm, and we'd need to
> replicate *that* algorithm.
Do we actually have to duplicate the algorithm, or just the weird
multitype initstate etc. interface?
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -