Class Rand


  • public class Rand
    extends java.lang.Object
    • Method Detail

      • ofInternalSeed

        public static Rand ofInternalSeed​(LCG lcg,
                                          long seed)
      • ofSeedScrambled

        public static Rand ofSeedScrambled​(LCG lcg,
                                           long seed)
      • ofInternalSeed

        public static Rand ofInternalSeed​(long seed)
      • ofSeedScrambled

        public static Rand ofSeedScrambled​(long seed)
      • copyOf

        public static Rand copyOf​(Rand other)
      • copyOf

        public static Rand copyOf​(java.util.Random random)
      • getSeed

        public long getSeed()
      • setInternalSeed

        public void setInternalSeed​(long seed)
      • setSeedScrambled

        public void setSeedScrambled​(long seed)
      • next

        public int next​(int bits)
      • advance

        public void advance​(long calls)
      • advance

        public void advance​(LCG skip)
      • nextBoolean

        public boolean nextBoolean()
      • nextInt

        public int nextInt()
      • nextInt

        public int nextInt​(int bound)
      • nextFloat

        public float nextFloat()
      • nextLong

        public long nextLong()
      • nextDouble

        public double nextDouble()
      • asRandomView

        public java.util.Random asRandomView()
      • copyToRandom

        public java.util.Random copyToRandom()
      • copyToThreadSafeRandom

        public java.util.Random copyToThreadSafeRandom()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object