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/03 06:19:27 UTC

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

     [ 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