org.encog.mathutil.randomize.generate
public abstract class AbstractGenerateRandom extends Object implements GenerateRandom
Constructor and Description |
---|
AbstractGenerateRandom() |
Modifier and Type | Method and Description |
---|---|
double |
nextDouble(double high)
The next random double up to a non-inclusive range.
|
double |
nextDouble(double low,
double high)
The next double between low (inclusive) and high (exclusive).
|
int |
nextInt(int range)
The next random int up to a non-inclusive range.
|
int |
nextInt(int low,
int high)
The next int between low (inclusive) and high (exclusive).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextLong
public int nextInt(int low, int high)
nextInt
in interface GenerateRandom
low
- The inclusive low value.high
- The exclusive high value.public double nextDouble(double high)
nextDouble
in interface GenerateRandom
high
- The highest desired value.public double nextDouble(double low, double high)
nextDouble
in interface GenerateRandom
low
- The inclusive low value.high
- The exclusive high value.public int nextInt(int range)
nextInt
in interface GenerateRandom
range
- The highest desired value.Copyright © 2014. All Rights Reserved.