170 |
|
|
171 |
|
/** |
172 |
|
* Generates a pseudorandom number with the indicated number of |
173 |
< |
* bits. Unlike in superclass {@link Random}, this method is never |
174 |
< |
* internally called or used by any other publicly accessible |
175 |
< |
* method. |
173 |
> |
* low-order bits. Because this class has no subclasses, this |
174 |
> |
* method cannot be invoked or overriden. |
175 |
|
* |
176 |
|
* @param bits random bits |
177 |
|
* @return the next pseudorandom value from this random number |
178 |
|
* generator's sequence |
179 |
|
*/ |
180 |
|
protected int next(int bits) { |
181 |
< |
return (int)(mix64(nextSeed()) >>> (64 - bits)); |
181 |
> |
return nextInt() >>> (32 - bits); |
182 |
|
} |
183 |
|
|
184 |
|
/** |