Interface RandomSource

All Known Subinterfaces:
BitRandomSource
All Known Implementing Classes:
LegacyRandomSource, RandomSequences.DirtyMarkingRandomSource, SingleThreadedRandomSource, ThreadSafeLegacyRandomSource, WorldgenRandom, XoroshiroRandomSource

public interface RandomSource
  • Field Details

  • Method Details

    • create

      static RandomSource create()
    • createThreadSafe

      @Deprecated static RandomSource createThreadSafe()
      Deprecated.
    • create

      static RandomSource create(long p_216336_)
    • createNewThreadLocalInstance

      static RandomSource createNewThreadLocalInstance()
    • fork

      RandomSource fork()
    • forkPositional

      PositionalRandomFactory forkPositional()
    • setSeed

      void setSeed(long p_216342_)
    • nextInt

      int nextInt()
    • nextInt

      int nextInt(int p_216331_)
    • nextIntBetweenInclusive

      default int nextIntBetweenInclusive(int p_216333_, int p_216334_)
    • nextLong

      long nextLong()
    • nextBoolean

      boolean nextBoolean()
    • nextFloat

      float nextFloat()
    • nextDouble

      double nextDouble()
    • nextGaussian

      double nextGaussian()
    • triangle

      default double triangle(double p_216329_, double p_216330_)
    • consumeCount

      default void consumeCount(int p_216338_)
    • nextInt

      default int nextInt(int p_216340_, int p_216341_)