We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
The issue is that Double.Infinity is not contained in the defined bounds.
Double.Infinity
This method is implemented with:
def nextDouble(least: Double, bound: Double): Double = { if (least >= bound) throw new IllegalArgumentException() nextDouble() * (bound - least) + least }
where (bound - least) evaluates to Double.Infinity when parameters Double.MinValue, Double.MaxValue.
(bound - least)
Double.MinValue
Double.MaxValue
The text was updated successfully, but these errors were encountered:
Fix scala-js#2144: Fix ThreadLocalRandom.nextDouble(MinValue, MaxValue).
5d1dbca
e43e440
213f05a
dd8a057
35d8cbb
nicolasstucki
No branches or pull requests
The issue is that
Double.Infinity
is not contained in the defined bounds.This method is implemented with:
where
(bound - least)
evaluates toDouble.Infinity
when parametersDouble.MinValue
,Double.MaxValue
.The text was updated successfully, but these errors were encountered: