You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles (JIRA)" <ji...@apache.org> on 2013/08/09 15:56:57 UTC

[jira] [Commented] (MATH-1020) "nextPermutation" method broken (in class "o.a.c.m.random.RandomDataGenerator")

    [ https://issues.apache.org/jira/browse/MATH-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13734797#comment-13734797 ] 

Gilles commented on MATH-1020:
------------------------------

Proposed fix committed in revision 1512306.
                
> "nextPermutation" method broken (in class "o.a.c.m.random.RandomDataGenerator")
> -------------------------------------------------------------------------------
>
>                 Key: MATH-1020
>                 URL: https://issues.apache.org/jira/browse/MATH-1020
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Gilles
>             Fix For: 3.3
>
>         Attachments: MATH-1020.patch
>
>
> Correct behaviour of this method relied on the [broken behaviour of "shuffle"|MATH-1019].
> With a fixed "shuffle", the "nextSample()" unit test caught the bug in this method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira