Interface RandomSource

All Known Subinterfaces:
BitRandomSource
All Known Implementing Classes:
LegacyRandomSource, SingleThreadedRandomSource, WorldgenRandom, XoroshiroRandomSource

public interface RandomSource
  • Method Details

    • fork

      RandomSource fork()
    • forkPositional

      PositionalRandomFactory forkPositional()
    • setSeed

      void setSeed(long p_158879_)
    • nextInt

      int nextInt()
    • nextInt

      int nextInt(int p_158878_)
    • nextIntBetweenInclusive

      default int nextIntBetweenInclusive(int p_189321_, int p_189322_)
    • nextLong

      long nextLong()
    • nextBoolean

      boolean nextBoolean()
    • nextFloat

      float nextFloat()
    • nextDouble

      double nextDouble()
    • nextGaussian

      double nextGaussian()
    • consumeCount

      default void consumeCount(int p_158877_)