Class TrueRandom
java.lang.Object
com.fastasyncworldedit.core.math.random.TrueRandom
- All Implemented Interfaces:
SimpleRandom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
nextDouble
(int x, int y, int z) Generate a random double from three integer components.int
nextInt
(int x, int y, int z, int len) Generate a random integer from three integer components.
-
Constructor Details
-
TrueRandom
public TrueRandom()
-
-
Method Details
-
nextDouble
public double nextDouble(int x, int y, int z) Description copied from interface:SimpleRandom
Generate a random double from three integer components. The generated value is between 0 (inclusive) and 1 (exclusive).- Specified by:
nextDouble
in interfaceSimpleRandom
- Parameters:
x
- the first componenty
- the second componentz
- the third component- Returns:
- a double between 0 (inclusive) and 1 (exclusive)
-
nextInt
public int nextInt(int x, int y, int z, int len) Description copied from interface:SimpleRandom
Generate a random integer from three integer components. The generated value is between 0 (inclusive) and 1 (exclusive)- Specified by:
nextInt
in interfaceSimpleRandom
- Parameters:
x
- the first componenty
- the second componentz
- the third componentlen
- the upper bound (exclusive)- Returns:
- a random integer between 0 (inclusive) and
bound
(exclusive)
-