commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan Jones (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RNG-33) Consider adding convenience methods to UniformRandomProvider
Date Mon, 19 Dec 2016 22:31:58 GMT

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

Duncan Jones commented on RNG-33:
---------------------------------

OK, looks like most bases are covered already.

What about {{static byte[] nextBytes(int count)}}? It's a minor inconvenience, but it always
frustrated me that I had to generate a byte array before filling it.

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

Mime
View raw message