de.topicmapslab.majortom.inmemory.store
Class HighQualityRandom

java.lang.Object
  extended by java.util.Random
      extended by de.topicmapslab.majortom.inmemory.store.HighQualityRandom
All Implemented Interfaces:
java.io.Serializable

public class HighQualityRandom
extends java.util.Random

Author:
http://www.javamex.com/tutorials/random_numbers/numerical_recipes.shtml
See Also:
Serialized Form

Field Summary
private  java.util.concurrent.locks.Lock l
           
private static long serialVersionUID
           
private  long u
           
private  long v
           
private  long w
           
 
Constructor Summary
HighQualityRandom()
           
HighQualityRandom(long seed)
           
 
Method Summary
protected  int next(int bits)
           
 long nextLong()
           
 
Methods inherited from class java.util.Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

l

private java.util.concurrent.locks.Lock l

u

private long u

v

private long v

w

private long w
Constructor Detail

HighQualityRandom

public HighQualityRandom()

HighQualityRandom

public HighQualityRandom(long seed)
Method Detail

nextLong

public long nextLong()
Overrides:
nextLong in class java.util.Random

next

protected int next(int bits)
Overrides:
next in class java.util.Random