beoran / skills-angband

Automatically exported from code.google.com/p/skills-angband
0 stars 0 forks source link

Mersenne Twister #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Improve random number generator to Mersenne twister.

http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html

Original issue reported on code.google.com by jmidd...@gmail.com on 29 Oct 2010 at 5:36

GoogleCodeExporter commented 9 years ago
Pardon my non-programmer's possibly completely misguided ramblingss, but...

For the longest time Dungeon Crawl relied on the system RNG for its RNG needs. 
The Windows system RNG poorly handled (handles?) long strings of consecutive 
RNG picks in such a way that gold generation was completely different for 
Windows builds than for Linux builds. The sole developer at the time didn't do 
Windows, so this came out really late, and natural it was a major balance issue!

The moral of the story - if there is any important process in Sangband funded 
on long strings of consecutive number picks, then this could be more important 
than it seems.

Original comment by erikpi...@gmail.com on 15 Feb 2011 at 7:30