@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.构造器和说明 |
---|
XORShiftRandom() |
XORShiftRandom(long input) |
限定符和类型 | 方法和说明 |
---|---|
int |
next(int bits)
All other methods like nextInt()/nextDouble()... depends on this, so we just need to overwrite
this.
|
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.