Generate 53-bit floats instead of 32.
This commit is contained in:
parent
446dcdf1d9
commit
61b01e0c40
1 changed files with 1 additions and 1 deletions
|
@ -81,6 +81,6 @@ function MersenneTwister()
|
||||||
};
|
};
|
||||||
|
|
||||||
this.real2 = function () {
|
this.real2 = function () {
|
||||||
return this.int32() * (1.0 / 4294967296.0);
|
return ((this.int32() >>> 5) * 67108864.0 + (this.int32() >>> 6)) / 9007199254740992.0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue