org.ujmp.core.util
Class RandomMersenne
java.lang.Object
java.util.Random
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomMersenne
public RandomMersenne()
RandomMersenne
public RandomMersenne(long seed)
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.