milesandnick created MATH-1141:
----------------------------------

             Summary: UniformIntegerDistribution should make constructer a 
exclusive bound or made parameter check more relax
                 Key: MATH-1141
                 URL: https://issues.apache.org/jira/browse/MATH-1141
             Project: Commons Math
          Issue Type: Bug
            Reporter: milesandnick
            Priority: Minor


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



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to