Package com.carrotsearch.hppc
Class XorShift128P
- java.lang.Object
-
- com.carrotsearch.hppc.XorShift128P
-
public class XorShift128P extends java.lang.Object
A fast pseudo-random number generator. For simplicity, we do not implement all ofRandom
methods.- See Also:
- "http://xorshift.di.unimi.it/", "http://xorshift.di.unimi.it/xorshift128plus.c"
-
-
Constructor Summary
Constructors Constructor Description XorShift128P()
XorShift128P(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
nextInt()
int
nextInt(int bound)
long
nextLong()
-