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

"nextPermutation" method broken (in class "o.a.c.m.random.RandomDataGenerator")

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3
    • None
    • None

    Description

      Correct behaviour of this method relied on the broken behaviour of "shuffle".
      With a fixed "shuffle", the "nextSample()" unit test caught the bug in this method.

      Attachments

        1. MATH-1020.patch
          2 kB
          Gilles Sadowski

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: