Package com.seedfinding.latticg.util
Class Rand
- java.lang.Object
-
- com.seedfinding.latticg.util.Rand
-
public class Rand extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advance(long calls)
void
advance(LCG skip)
java.util.Random
asRandomView()
static Rand
copyOf(Rand other)
static Rand
copyOf(java.util.Random random)
java.util.Random
copyToRandom()
java.util.Random
copyToThreadSafeRandom()
boolean
equals(java.lang.Object obj)
long
getSeed()
int
next(int bits)
boolean
nextBoolean()
double
nextDouble()
float
nextFloat()
int
nextInt()
int
nextInt(int bound)
long
nextLong()
static Rand
ofInternalSeed(long seed)
static Rand
ofInternalSeed(LCG lcg, long seed)
static Rand
ofSeedScrambled(long seed)
static Rand
ofSeedScrambled(LCG lcg, long seed)
void
setInternalSeed(long seed)
void
setSeedScrambled(long seed)
java.lang.String
toString()
-
-
-
Method Detail
-
ofInternalSeed
public static Rand ofInternalSeed(long seed)
-
ofSeedScrambled
public static Rand ofSeedScrambled(long seed)
-
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 classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-