lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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