Class MTRandom

java.lang.Object
java.util.Random
studio.magemonkey.codex.util.random.MTRandom
All Implemented Interfaces:
Serializable, java.util.random.RandomGenerator

public class MTRandom extends Random
See Also:
  • Constructor Details

    • MTRandom

      public MTRandom()
    • MTRandom

      public MTRandom(boolean compatible)
    • MTRandom

      public MTRandom(long seed)
    • MTRandom

      public MTRandom(byte[] buf)
    • MTRandom

      public MTRandom(int[] buf)
  • Method Details

    • setSeed

      public void setSeed(long seed)
      Overrides:
      setSeed in class Random
    • setSeed

      public void setSeed(byte[] buf)
    • setSeed

      public void setSeed(int[] buf)
    • next

      protected int next(int bits)
      Overrides:
      next in class Random
    • pack

      public static int[] pack(byte[] buf)