[
https://issues.apache.org/jira/browse/MATH-963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622535#comment-13622535
]
Phil Steitz commented on MATH-963:
----------------------------------
The reason the method is missing from the interface is that it is not present
in j.u.Random and RandomGenerator is supposed to be a straight replacement for
j.u.Random. It might be better to just add it to the abstract class, with a
decent impl like what exists in the abstract bitstream generator. We should
probably also replace the default impl of nextInt(int) with something better if
we can figure this out. If we can find a good way to provide a good default
impl just based on nextBytes, then I guess I am +0 on adding this. If not, I
don't think it is a good idea to force all RandomGenerators to implement
something or inherit a not so great default.
> 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