We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current implementation:
wy2u01(uint64_t r){ const double _wynorm=1.0/(1ull<<52); return (r>>12)*_wynorm;}
I believe this should be <<53 and >>11 in order to get the highest number of possible results (while still being evenly spaced).
<<53
>>11
See:
return (nextLong() >>> 11) * 0x1.0p-53;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current implementation:
I believe this should be
<<53
and>>11
in order to get the highest number of possible results (while still being evenly spaced).See:
return (nextLong() >>> 11) * 0x1.0p-53;
The text was updated successfully, but these errors were encountered: