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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1, 1.2, 2.0, 2.1, 2.2
    • 3.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: