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

Change implementation of "UniformIntegerDistribution.sample()"

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              erans Gilles
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: