Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1011

Change implementation of "UniformIntegerDistribution.sample()"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.2
    • 3.3
    • None
    • None

    Description

      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).

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: