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

Alex Herbert commented on RNG-140:
----------------------------------

bq. IIUC, you were meaning that with this one, it is not necessary to have one 
that checks that the same average number of samples fall in equal-size bins.

Given that we test the RNG using PractRand and BigCrush we know the long is 
uniform across the entire range. So if you just exclude values outside the 
range you are interested in, the remaining samples will be uniform inside the 
range.

I can add a Chi-squared test using bins if you want. It just seemed overkill.


> 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
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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