Class ExpandRandom

java.lang.Object
com.blamejared.crafttweaker.natives.util.math.ExpandRandom

@ZenRegister public class ExpandRandom extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    nextBoolean(Random internal)
     
    static double
    nextDouble(Random internal)
    Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
    static float
    nextFloat(Random internal)
    Returns the next pseudorandom, uniformly distributed float value between 0.0f and 1.0f from this random number generator's sequence.
    static int
    nextInt(Random internal)
    Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
    static int
    nextInt(Random internal, int bound)
    Returns the next pseudorandom, uniformly distributed int value between zero (inclusive) and bound (exclusive) from this random number generator's sequence

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExpandRandom

      public ExpandRandom()
  • Method Details

    • nextInt

      public static int nextInt(Random internal)
      Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
    • nextInt

      public static int nextInt(Random internal, int bound)
      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

      public static boolean nextBoolean(Random internal)
    • nextDouble

      public static double nextDouble(Random internal)
      Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.
    • nextFloat

      public static float nextFloat(Random internal)
      Returns the next pseudorandom, uniformly distributed float value between 0.0f and 1.0f from this random number generator's sequence.