Reverting commit 8d6d088622
as per Gilles request.
The work on revamping the random packages is perfoemd in the random-ravamp branch.
This commit is contained in:
parent
cf82e4cab4
commit
16f46dcc3d
|
@ -120,7 +120,7 @@ public abstract class BaseRandomGenerator
|
|||
int bits;
|
||||
int val;
|
||||
do {
|
||||
bits = nextInt() >>> 1;
|
||||
bits = (nextInt() >>> 1);
|
||||
val = bits % n;
|
||||
} while (bits - val + (n - 1) < 0);
|
||||
return val;
|
||||
|
|
Loading…
Reference in New Issue