Generate 53-bit floats instead of 32.

This commit is contained in:
Jesse Schwartzentruber 2017-04-20 15:12:31 -04:00
parent 446dcdf1d9
commit 61b01e0c40

View file

@ -81,6 +81,6 @@ function MersenneTwister()
};
this.real2 = function () {
return this.int32() * (1.0 / 4294967296.0);
return ((this.int32() >>> 5) * 67108864.0 + (this.int32() >>> 6)) / 9007199254740992.0;
};
}