Interface SimpleRandom

All Known Implementing Classes:
NoiseRandom, TrueRandom

public interface SimpleRandom
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    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 component
      y - the second component
      z - 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 component
      y - the second component
      z - the third component
      bound - the upper bound (exclusive)
      Returns:
      a random integer between 0 (inclusive) and bound (exclusive)