@Public public class XORShiftRandom extends Random
Random
in benchmark, with
the cost that abandon thread-safety. So it's recommended to create a new XORShiftRandom
for each thread.Constructor and Description |
---|
XORShiftRandom() |
XORShiftRandom(long input) |
Modifier and Type | Method and Description |
---|---|
int |
next(int bits)
All other methods like nextInt()/nextDouble()...
|
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.