[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Replacing rand()
- From: "Thatcher Ulrich" <tu@...>
- Date: Tue, 24 Feb 2004 17:54:53 -0500
As long as we're trotting out favorite PRNG's, here's some Public
Domain code for Marsaglia's complimentary-multiply-with-carry algo:
http://cvs.sourceforge.net/viewcvs.py/tu-testbed/tu-testbed/base/tu_random.cpp?view=markup
I don't really understand the ins and outs myself, but based on a
quick web search, some authorities like it better than MT.
--
Thatcher Ulrich
http://tulrich.com