Interface Randomable

All Known Subinterfaces:
BrushSettings, SchematicSelection, SchematicSet

public interface Randomable
Provides a standard random instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Random
    Get the random instance of the calling thread
    default int
    randomInt(int bound)
    Get a random integer based on ThreadLocalRandom
  • Method Details

    • randomInt

      default int randomInt(int bound)
      Get a random integer based on ThreadLocalRandom
      Parameters:
      bound - upper exclusive bound
      Returns:
      number in bounds
    • random

      default Random random()
      Get the random instance of the calling thread
      Returns:
      random instance of the calling thread