Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
UniformIntegerDistribution constructer public UniformIntegerDistribution(RandomGenerator rng,
int lower,
int upper)
the lower and the upper all inclusive. but the parameter check made a if (lower >= upper) {
throw new NumberIsTooLargeException(
LocalizedFormats.LOWER_BOUND_NOT_BELOW_UPPER_BOUND,
lower, upper, false);
check, i think it is too strict
to construct UniformIntegerDistribution (0,0)
this should make it possible