Class SimpleRandom
java.lang.Object
llnl.gnem.core.util.randomNumbers.BaseRandomAlgorithm
llnl.gnem.core.util.randomNumbers.SimpleRandom
- All Implemented Interfaces:
RandomAlgorithm
- Author:
- dodge1
-
Constructor Summary
-
Method Summary
Methods inherited from class llnl.gnem.core.util.randomNumbers.BaseRandomAlgorithm
getBoundedDouble, getBoundedInt, nextGaussian
-
Constructor Details
-
SimpleRandom
public SimpleRandom()
-
-
Method Details
-
nextDouble
public double nextDouble()- Specified by:
nextDouble
in interfaceRandomAlgorithm
- Specified by:
nextDouble
in classBaseRandomAlgorithm
-
nextInt
public int nextInt()- Specified by:
nextInt
in interfaceRandomAlgorithm
- Specified by:
nextInt
in classBaseRandomAlgorithm
-
nextInt
public int nextInt(int n) - Specified by:
nextInt
in interfaceRandomAlgorithm
- Specified by:
nextInt
in classBaseRandomAlgorithm
-
nextLong
public long nextLong()- Specified by:
nextLong
in interfaceRandomAlgorithm
- Specified by:
nextLong
in classBaseRandomAlgorithm
-
resetSeed
public void resetSeed(long seed)
-