Class TrueRandom

java.lang.Object
com.fastasyncworldedit.core.math.random.TrueRandom
All Implemented Interfaces:
SimpleRandom

public class TrueRandom extends Object implements SimpleRandom
  • 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 interface SimpleRandom
      Parameters:
      x - the first component
      y - the second component
      z - 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 interface SimpleRandom
      Parameters:
      x - the first component
      y - the second component
      z - the third component
      len - the upper bound (exclusive)
      Returns:
      a random integer between 0 (inclusive) and bound (exclusive)