[
https://issues.apache.org/jira/browse/RNG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15763980#comment-15763980
]
Gilles commented on RNG-33:
---------------------------
Adding it would have the major inconvenience of breaking backwards
compatibility.
I understand the frustration; but then where do we stop with the syntactic
sugar?
And, were we willing to add more sugar, we'd be stuck with
{code}
public int[] nextInt(int count) { /* */ }
{code}
IMHO, a better option would be to provide such utilities in another module (ala
"RNG Utils"...) along with Java 8 streams.
> Consider adding convenience methods to UniformRandomProvider
> ------------------------------------------------------------
>
> Key: RNG-33
> URL: https://issues.apache.org/jira/browse/RNG-33
> Project: Commons RNG
> Issue Type: Improvement
> Affects Versions: 1.0
> Reporter: Duncan Jones
> Priority: Minor
>
> Commons Lang maintains a class called
> [{{RandomUtils}}|http://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/RandomUtils.html],
> which supplements the methods offered by {{java.util.Random}}.
> If similar methods were added to {{UniformRandomProvider}}, we could
> deprecate {{RandomUtils}} in favour of using RNG.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)