|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Random com.carrotsearch.hppc.XorShiftRandom
public class XorShiftRandom
XorShift pseudo random number generator. This class is not thread-safe and should be used from a single thread only.
Constructor Summary | |
---|---|
XorShiftRandom()
|
|
XorShiftRandom(long seed)
|
Method Summary | |
---|---|
protected int |
next(int bits)
|
long |
nextLong()
|
void |
setSeed(long seed)
|
Methods inherited from class java.util.Random |
---|
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XorShiftRandom()
public XorShiftRandom(long seed)
Method Detail |
---|
public long nextLong()
nextLong
in class java.util.Random
protected int next(int bits)
next
in class java.util.Random
public void setSeed(long seed)
setSeed
in class java.util.Random
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |