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

AbstractRandomGenerator nextInt() and nextLong() default implementations generate only positive values

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1, 1.2, 2.0, 2.1, 2.2
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      The javadoc for these methods (and what is specified in the RandomGenerator interface) says that all int / long values should be in the range of these methods. The default implementations provided in this class do not generate negative values.

        Attachments

          Activity

            People

            • Assignee:
              psteitz Phil Steitz
              Reporter:
              psteitz Phil Steitz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: