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

Phil Steitz commented on MATH-963:
----------------------------------

While you can't use a RandomGenerator instance directly to replace a Random, 
you can use a RandomAdaptor.  That is really what led to tearing off the 
interface from Random.  I use this so would not like to drop the interface.

I am OK with adding the method (in 4.0) if someone can come up with a good 
default impl to be added to AbstractRandomGenerator.  "Good" means similar to 
what AbstractBitstreamGenerator does.
                
> Interface "RandomGenerator" is missing "nextLong(long)" method
> --------------------------------------------------------------
>
>                 Key: MATH-963
>                 URL: https://issues.apache.org/jira/browse/MATH-963
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Gilles
>            Priority: Trivial
>              Labels: api-change
>
> There is a method "nextInt(int)" but not "nextLong(long)".
> The "BitsStreamGenerator" class already implements it.

--
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

Reply via email to