Package com.freevariable.lancer.random
Class RandomEngine
- java.lang.Object
-
- com.freevariable.lancer.random.RandomEngine
-
- Direct Known Subclasses:
DRand
public class RandomEngine extends java.lang.Object
Reimplementation of the colt RandomEngine interface atop java.util.Random
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Random
r
-
Constructor Summary
Constructors Constructor Description RandomEngine()
RandomEngine(long seed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
apply(double _ignored)
int
apply(int _ignored)
static RandomEngine
makeDefault()
double
nextDouble()
float
nextFloat()
int
nextInt()
long
nextLong()
double
raw()
-
-
-
Method Detail
-
apply
public double apply(double _ignored)
-
apply
public int apply(int _ignored)
-
makeDefault
public static RandomEngine makeDefault()
-
nextDouble
public double nextDouble()
-
nextFloat
public float nextFloat()
-
nextInt
public int nextInt()
-
nextLong
public long nextLong()
-
raw
public double raw()
-
-