168 |
|
return r; |
169 |
|
} |
170 |
|
|
171 |
< |
// We must define this, but never use it. |
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. |
176 |
> |
* |
177 |
> |
* @param bits random bits |
178 |
> |
* @return the next pseudorandom value from this random number |
179 |
> |
* generator's sequence |
180 |
> |
*/ |
181 |
|
protected int next(int bits) { |
182 |
|
return (int)(mix64(nextSeed()) >>> (64 - bits)); |
183 |
|
} |