Arc Forumnew | comments | leaders | submitlogin
2 points by hilbertastro 6171 days ago | link | parent

I like to use the Mersenne Twister for my pseudorandom numbers. The source code (in C) is illuminating. Or you can check out www.netlib.org for other implementations (in e.g., Fortran 77). Should be straightforward to translate them.


1 point by bOR_ 6171 days ago | link

It's in ruby too. Something that works nice if you're writing models using the gillespie algorithm (as I happen to be ;).

-----