[jira] [Commented] (RNG-90) Improve nextInt(int) and nextLong(long) for powers of 2

2019-04-17 Thread Alex D Herbert (JIRA)
[ https://issues.apache.org/jira/browse/RNG-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16820230#comment-16820230 ] Alex D Herbert commented on RNG-90: --- I have noted that the code above: {code:java} return (

[jira] [Commented] (RNG-90) Improve nextInt(int) and nextLong(long) for powers of 2

2019-04-17 Thread Alex D Herbert (JIRA)
[ https://issues.apache.org/jira/browse/RNG-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16820581#comment-16820581 ] Alex D Herbert commented on RNG-90: --- I could not believe that this method was without flaws

[jira] [Commented] (RNG-90) Improve nextInt(int) and nextLong(long) for powers of 2

2019-04-23 Thread Alex D Herbert (JIRA)
[ https://issues.apache.org/jira/browse/RNG-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16824095#comment-16824095 ] Alex D Herbert commented on RNG-90: --- When computing an integer in a range {{n}} from a poss

[jira] [Commented] (RNG-90) Improve nextInt(int) and nextLong(long) for powers of 2

2019-07-16 Thread Alex D Herbert (JIRA)
[ https://issues.apache.org/jira/browse/RNG-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16886553#comment-16886553 ] Alex D Herbert commented on RNG-90: --- This multiply method with rejection has been documente

[jira] [Commented] (RNG-90) Improve nextInt(int) and nextLong(long) for powers of 2

2019-08-04 Thread Alex D Herbert (JIRA)
[ https://issues.apache.org/jira/browse/RNG-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16899681#comment-16899681 ] Alex D Herbert commented on RNG-90: --- I have run some benchmarking of the nextInt(int) metho