org.ujmp.core.util
Class RandomMersenne

java.lang.Object
  extended by java.util.Random
      extended by org.ujmp.core.util.RandomMersenne
All Implemented Interfaces:
Serializable

public class RandomMersenne
extends Random

Better than java.util.Random and almost as fast.

Author:
arndt
See Also:
Serialized Form

Constructor Summary
RandomMersenne()
           
RandomMersenne(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
 

Constructor Detail

RandomMersenne

public RandomMersenne()

RandomMersenne

public RandomMersenne(long seed)
Method Detail

nextLong

public long nextLong()
Overrides:
nextLong in class Random

next

protected int next(int bits)
Overrides:
next in class Random


Copyright © 2010. All Rights Reserved.