Class MTRandom
java.lang.Object
java.util.Random
studio.magemonkey.codex.util.random.MTRandom
- All Implemented Interfaces:
Serializable, java.util.random.RandomGenerator
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
java.util.random.RandomGenerator.ArbitrarilyJumpableGenerator, java.util.random.RandomGenerator.JumpableGenerator, java.util.random.RandomGenerator.LeapableGenerator, java.util.random.RandomGenerator.SplittableGenerator, java.util.random.RandomGenerator.StreamableGenerator -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Random
doubles, doubles, doubles, doubles, from, ints, ints, ints, ints, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLongMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.random.RandomGenerator
equiDoubles, isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
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
-
setSeed
public void setSeed(byte[] buf) -
setSeed
public void setSeed(int[] buf) -
next
-
pack
public static int[] pack(byte[] buf)
-