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

Gilles Sadowski commented on RNG-140:
-------------------------------------

bq. I suggest [...] {{LongSampler}}

I'd have favoured {{DiscreteLongSampler}} (as alphabetical hint of functional 
similarity) but you are probably right since it a low-level class required to 
handle a different type. [The more so if the {{DiscreteSampler}} and 
{{ContinuousSampler}} are going to disappear.]

bq. methods names are not as nice as the current {{sample}}.

{code}
interface ...
    implements DoubleSupplier{

    @Override
    double getAsDouble();

    default double sample() {
        return getAsDouble();
    }
}
{code}



> nextLong(long lo, long hi)
> --------------------------
>
>                 Key: RNG-140
>                 URL: https://issues.apache.org/jira/browse/RNG-140
>             Project: Commons RNG
>          Issue Type: Wish
>          Components: sampling
>            Reporter: Gilles Sadowski
>            Priority: Minor
>              Labels: api
>
> Replacement for functionality defined in 
> [{{RandomUtils}}|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/random/RandomUtils.java;h=60060e71d5bbe1d00878a1f54f8bb1ff88b65f11;hb=HEAD#l293].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to