|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Random
hex.rng.XorShiftRNG
public class XorShiftRNG
Simple XorShiftRNG.
Note: According to RF benchmarks it does not provide so accurate results
as Random
, however it can be used as an alternative.
Constructor Summary | |
---|---|
XorShiftRNG(long seed)
|
Method Summary | |
---|---|
protected int |
next(int bits)
|
int |
nextInt()
|
int |
nextInt(int n)
|
long |
nextLong()
|
Methods inherited from class java.util.Random |
---|
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, setSeed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XorShiftRNG(long seed)
Method Detail |
---|
public long nextLong()
nextLong
in class java.util.Random
public int nextInt()
nextInt
in class java.util.Random
public int nextInt(int n)
nextInt
in class java.util.Random
protected int next(int bits)
next
in class java.util.Random
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |