Class ExpandRandom
java.lang.Object
com.blamejared.crafttweaker.natives.util.math.ExpandRandom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleannextBoolean(Random internal) static doublenextDouble(Random internal) Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.static floatReturns the next pseudorandom, uniformly distributed float value between 0.0f and 1.0f from this random number generator's sequence.static intReturns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.static intReturns the next pseudorandom, uniformly distributed int value between zero (inclusive) and bound (exclusive) from this random number generator's sequence
-
Constructor Details
-
ExpandRandom
public ExpandRandom()
-
-
Method Details
-
nextInt
Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. -
nextInt
Returns the next pseudorandom, uniformly distributed int value between zero (inclusive) and bound (exclusive) from this random number generator's sequence- Parameters:
bound- the upper bound (exclusive). Must be positive.
-
nextBoolean
-
nextDouble
Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence. -
nextFloat
Returns the next pseudorandom, uniformly distributed float value between 0.0f and 1.0f from this random number generator's sequence.
-