Page 2 of 2

Re: "Fair" random number generator

Posted: Thu Sep 12, 2013 2:43 am
by Ref
timmeh42 wrote:It might be interesting to read how Dota 2 implements Pseudo-Random Distribution - as a game with a massive playerbase, it has to strive to make random events as "fair" as possible or suffer the consequences of a large amount of moaning and whining (and less fun-having).
Have played around with Linux-man randonlua library and convinced myself that is not the approach I really want.
The frequency of a particular number occurring (within 10%) can only be insured if 1,000,000 samples or more are taken.
Do you know of a Lua implementation of the Dota2 approach?
(Attached script just some of my playing around with the randomlua library. Couldn't see much difference between various functions using this simple test.)