ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:rng_myths

This is an old revision of the document!


ZDoom RNG myths

Many modders are convinced that ZDoom's Random function is not statistically random, or returns the same sequence of random numbers in different games. As a result, some mods try to enhance the randomness by factoring in Timer or actor positions into their custom RNG, and using it throughout the mod

While this non-randomness of Random was probably true previously, it is not anymore. Zandronum 2.0+ and GZDoom 1.8.6+ (as verified, likely earlier versions too) use statistically random Mersenne Twister RNG and don't output the same sequence in different games or rounds.

Therefore, “enhancing” the RNG will only likely make it less random in modern versions of source ports.

new/rng_myths.1519033320.txt.gz · Last modified: 2018/02/19 11:42 by korshun