Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6E7F9200BE1 for ; Mon, 19 Dec 2016 21:22:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6D40C160B14; Mon, 19 Dec 2016 20:22:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B70E0160B21 for ; Mon, 19 Dec 2016 21:22:04 +0100 (CET) Received: (qmail 41910 invoked by uid 500); 19 Dec 2016 20:21:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 41798 invoked by uid 99); 19 Dec 2016 20:21:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2016 20:21:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8AD592C03E9 for ; Mon, 19 Dec 2016 20:21:58 +0000 (UTC) Date: Mon, 19 Dec 2016 20:21:58 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (RNG-33) Consider adding convenience methods to UniformRandomProvider MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Dec 2016 20:22:05 -0000 [ 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)