MT 19937 rng installed in src/



Hello,

I have committed rand-mt19937.lisp to src/, along with a test
script in the tests/ directory and documentation in doc/info/.
src/Makefile.am, src/maxima.system, and src/*-depends.mk have 
been updated appropriately.

rand-mt19937.lisp has an implementation of $random which replaces
the previous version, which punted to Lisp random. 
It is a Mersenne twister rng, adapted from rand-mt19937.lisp
in the CMUCL source code. In addition to $random, there are 
functions $make_random_state and $set_random_state to maintain 
the rng state. This implementation should give the same sequence 
of numbers on all platforms.

"make clean; make; make install" succeeds, and run_testsuite()
shows no unexpected errors. 

I decided to go ahead after reviewing emails from a few months
ago -- in particular these seemed encouraging.
http://www.math.utexas.edu/pipermail/maxima/2005/009011.html
http://www.math.utexas.edu/pipermail/maxima/2005/008997.html

Hope this helps,
Robert Dodier


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/