The higher the number of additions, the closer to the gaussian distribution you get.

Le 11 juil. 2018 à 02:18, Jim Andrews <jim@vispo.com> a écrit :For instance,

x1 = Math.random();

x2 = Math.random();

x3 = (x1 + x2)/2;

Both x1 and x2 are random nums between 0 and 1. So too is x3. But x3 has a different distribution than x1 or x2. x3 has values around 0.5 more frequently than it has values around any other number.

x1 = Math.random();

x2 = Math.random();

x3 = Math.random();

x4 = (x1 + x2 + x3)/3;

And in the above, x4 is yet more tightly clustered around 0.5