|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.transport.reliable.SMLCGRandom
public class SMLCGRandom
A Shuffled Multiple Combined Linear Congruential Generator Uses L'Ecuyer's CLCG4 with a Bays-Durham shuffle. From
Numerical Recipes inC This produces a more random stream of results than just
java.util.Random
Constructor Summary | |
---|---|
SMLCGRandom()
Creates a new pseudorandom number generator, seeded from the current time. |
|
SMLCGRandom(long seed)
Creates the generator with the provided seed |
Method Summary | |
---|---|
byte |
nextByte()
|
double |
nextDouble()
|
float |
nextFloat()
|
int |
nextInt()
|
long |
nextLong()
|
short |
nextShort()
|
void |
setSeed(long seed)
Set the seed for the random generator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SMLCGRandom()
public SMLCGRandom(long seed)
seed
- Method Detail |
---|
public void setSeed(long seed) throws IllegalArgumentException
seed
-
IllegalArgumentException
public short nextShort()
public int nextInt()
public long nextLong()
public float nextFloat()
public double nextDouble()
public byte nextByte()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |