接口 RandomSource

所有已知子接口:
BitRandomSource
所有已知实现类:
LegacyRandomSource, SingleThreadedRandomSource, ThreadSafeLegacyRandomSource, WorldgenRandom, XoroshiroRandomSource

public interface RandomSource
  • 字段详细资料

  • 方法详细资料

    • create

      static RandomSource create()
    • createThreadSafe

      @Deprecated static RandomSource createThreadSafe()
      已过时。
    • create

      static RandomSource create(long pSeed)
    • createNewThreadLocalInstance

      static RandomSource createNewThreadLocalInstance()
    • fork

      RandomSource fork()
    • forkPositional

      PositionalRandomFactory forkPositional()
    • setSeed

      void setSeed(long pSeed)
    • nextInt

      int nextInt()
    • nextInt

      int nextInt(int pBound)
    • nextIntBetweenInclusive

      default int nextIntBetweenInclusive(int pMin, int pMax)
    • nextLong

      long nextLong()
    • nextBoolean

      boolean nextBoolean()
    • nextFloat

      float nextFloat()
    • nextDouble

      double nextDouble()
    • nextGaussian

      double nextGaussian()
    • triangle

      default double triangle(double pMin, double pMax)
    • consumeCount

      default void consumeCount(int pCount)
    • nextInt

      default int nextInt(int pOrigin, int pBound)