Package com.bayesserver
Interface RandomNumberGenerator
-
- All Known Implementing Classes:
RandomDefault
public interface RandomNumberGenerator
Interface for random number generation.- See Also:
RandomDefault
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
nextDouble()
Generates a random floating-point number that is greater than or equal to 0.0, and less than 1.0.int
nextInt(int minValue, int maxValue)
Generates a random integer between [minValue..maxValue).
-
-
-
Method Detail
-
nextDouble
double nextDouble()
Generates a random floating-point number that is greater than or equal to 0.0, and less than 1.0.
-
nextInt
int nextInt(int minValue, int maxValue)
Generates a random integer between [minValue..maxValue).- Parameters:
minValue
- the least legal value for the Random number.maxValue
- One greater than the greatest legal return value.- Returns:
- Random int between [minValue..maxValue).
-
-