Suggestion for 2.4+: Mersenne Twister
- Posted by Rod Jackson <rodjackson_x at hotmail.com> Sep 11, 2001
- 538 views
Hi all, Here's an idea I want to toss out, to Rob for future versions of Euphoria: While Eu's pseudorandom algorithm is adequate for most purposes, I've found a good deal of "pattern" in the results when used "en masse". I would suggest that Rob switch to using the Mersenne Twister; it has numerous advantages over most other algorithms. I would make use of it in IGT myself, with the Euphoria translation of MT, but an interpreted algorithm appears to be too slow. Downside: it could break code. But then hopefully any software that *depends* on rand() for consistency would have taken into account the idea that the random-number generator could change. Rod Jackson