Mersenne Twist Random Number Generator

Blitz3D Forums/Blitz3D Userlibs/Mersenne Twist Random Number Generator

Tests indicate it to work well across CPUs... Despite Mark's protestations to the contrary. So there you go...

http://www.obsidianobelisk.com/software/randtest.zip

That file contains the source and executable for a program that will test with a predetermined seed value a sequence of 200,000 numbers. All tests so far have resulted in "MATCH".

If you wish to test the PRNG, just put the dll in the same directory as the randtest.exe program and run it. If ANYONE gets "FAILED" I would like to know what CPU they are running.

I'll post in the blitz+ forums as well, and I'll convert it to a blitzmax module in short order.

Kanati