From: Albert G. <Dr....@t-...> - 2008-07-08 13:35:06
|
Albert Graef wrote: > Hmm, many algorithms in C libraries are crappier than what you'd come up > with in a minute. How about the Mersenne twister? It's not > crytographically secure, but otherwise it's very good. I still have an > implementation of that in the Q codebase, shouldn't take longer than > five minutes to add it to the library. I added the Mersenne Twister now. See random/srandom in math.pure. Note that random returns a 32 bit machine int, so the numbers may be negative. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |