You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2011/08/02 21:08:27 UTC

[jira] [Created] (MATH-640) AbstractRandomGenerator nextInt() and nextLong() default implementations generate only positive values

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

                 Key: MATH-640
                 URL: https://issues.apache.org/jira/browse/MATH-640
             Project: Commons Math
          Issue Type: Bug
            Reporter: Phil Steitz
            Assignee: Phil Steitz


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MATH-640) AbstractRandomGenerator nextInt() and nextLong() default implementations generate only positive values

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz updated MATH-640:
-----------------------------

    Affects Version/s: 1.1
                       1.2
                       2.0
                       2.1
                       2.2
        Fix Version/s: 3.0

> AbstractRandomGenerator nextInt() and nextLong() default implementations generate only positive values
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-640
>                 URL: https://issues.apache.org/jira/browse/MATH-640
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 1.1, 1.2, 2.0, 2.1, 2.2
>            Reporter: Phil Steitz
>            Assignee: Phil Steitz
>             Fix For: 3.0
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MATH-640) AbstractRandomGenerator nextInt() and nextLong() default implementations generate only positive values

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz resolved MATH-640.
------------------------------

    Resolution: Fixed

Fixed in r1153338

> AbstractRandomGenerator nextInt() and nextLong() default implementations generate only positive values
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-640
>                 URL: https://issues.apache.org/jira/browse/MATH-640
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 1.1, 1.2, 2.0, 2.1, 2.2
>            Reporter: Phil Steitz
>            Assignee: Phil Steitz
>             Fix For: 3.0
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira