[
https://issues.apache.org/jira/browse/RNG-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15762194#comment-15762194
]
Gilles commented on RNG-33:
---------------------------
{{nextDouble()}} in {{RandomUtils}} has a different semantics than in Commons
RNG's {{UniformRandomProvider}} (and JDK's {{Random}}).
The other methods' functionality (uniform sampling from a specified range) is
available in the "commons-rng-sampling" module (see
[ContinuousUniformSampler|http://commons.apache.org/proper/commons-rng/commons-rng-sampling/javadocs/api-1.0/org/apache/commons/rng/sampling/distribution/ContinuousUniformSampler.html]
and
[DiscreteUniformSampler|http://commons.apache.org/proper/commons-rng/commons-rng-sampling/javadocs/api-1.0/org/apache/commons/rng/sampling/distribution/DiscreteUniformSampler.html]).
> 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)