[ 
https://issues.apache.org/jira/browse/LANG-472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677876#action_12677876
 ] 

Henri Yandell commented on LANG-472:
------------------------------------

I'm not tied to JVMRandom. I needed it for a particular set of code, but 
haven't used it since.

> RandomUtils.nextLong() get all even number
> ------------------------------------------
>
>                 Key: LANG-472
>                 URL: https://issues.apache.org/jira/browse/LANG-472
>             Project: Commons Lang
>          Issue Type: Bug
>         Environment: all system
>            Reporter: zhangruimin
>             Fix For: 3.0
>
>         Attachments: lang-472.patch
>
>
> when we use the following code , we can see that the method produce only even 
> number.
>          while (true) {
> //        for (int i = 0; i < 100; i++) {
>             if (RandomUtils.nextLong() % 2 == 1) {
>                 System.out.println("ok");
>             }
>         }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to