Package org.ujmp.core.util
Class RandomMersenne
- java.lang.Object
-
- java.util.Random
-
- org.ujmp.core.util.RandomMersenne
-
- All Implemented Interfaces:
java.io.Serializable
public class RandomMersenne extends java.util.Random
Better than java.util.Random and almost as fast- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private long
u
private long
v
private long
w
-
Constructor Summary
Constructors Constructor Description RandomMersenne()
RandomMersenne(long seed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
next(int bits)
long
nextLong()
void
setSeed(long seed)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
u
private long u
-
v
private long v
-
w
private long w
-
-