Interface SimpleRandom
- All Known Implementing Classes:
NoiseRandom
,TrueRandom
public interface SimpleRandom
-
Method Summary
Modifier and TypeMethodDescriptiondouble
nextDouble
(int x, int y, int z) Generate a random double from three integer components.default int
nextInt
(int x, int y, int z, int bound) Generate a random integer from three integer components.
-
Method Details
-
nextDouble
double nextDouble(int x, int y, int z) Generate a random double from three integer components. The generated value is between 0 (inclusive) and 1 (exclusive).- Parameters:
x
- the first componenty
- the second componentz
- the third component- Returns:
- a double between 0 (inclusive) and 1 (exclusive)
-
nextInt
default int nextInt(int x, int y, int z, int bound) Generate a random integer from three integer components. The generated value is between 0 (inclusive) and 1 (exclusive)- Parameters:
x
- the first componenty
- the second componentz
- the third componentbound
- the upper bound (exclusive)- Returns:
- a random integer between 0 (inclusive) and
bound
(exclusive)
-