Gilles created MATH-1011:
----------------------------

             Summary: Change implementation of 
"UniformIntegerDistribution.sample()"
                 Key: MATH-1011
                 URL: https://issues.apache.org/jira/browse/MATH-1011
             Project: Commons Math
          Issue Type: Improvement
    Affects Versions: 3.2
            Reporter: Gilles
            Priority: Trivial
             Fix For: 3.3


The classes {{RandomDataGenerator}} and {{UniformIntegerDistribution}} use 
different codes for providing random integers in a range.

The version from {{RandomDataGenerator}} should be moved to the "sample()" 
method of {{UniformIntegerDistribution}} (cf. this 
[post|http://markmail.org/message/b23c57ze62wtiktt]).

Then, {{RandomDataGenerator}} could eventually call that method in order to 
avoid code duplication.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to