Package com.carrotsearch.hppc
Class XorShift128P
java.lang.Object
com.carrotsearch.hppc.XorShift128P
A fast pseudo-random number generator. For simplicity, we do not implement all of
Random
methods.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
state0
private long state0 -
state1
private long state1
-
-
Constructor Details
-
XorShift128P
public XorShift128P(long seed) -
XorShift128P
public XorShift128P()
-
-
Method Details
-
nextLong
public long nextLong() -
nextInt
public int nextInt() -
notZero
private static long notZero(long value) -
nextInt
public int nextInt(int bound)
-