Class TThreadLocalRandom
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TRandom
org.teavm.classlib.java.util.concurrent.TThreadLocalRandom
- All Implemented Interfaces:
TSerializable
-
Method Summary
Modifier and TypeMethodDescriptionstatic TThreadLocalRandom
current()
double
nextDouble(double bound)
double
nextDouble(double origin, double bound)
int
nextInt(int origin, int bound)
long
nextLong(long bound)
long
nextLong(long origin, long bound)
void
setSeed(long seed)
Methods inherited from class org.teavm.classlib.java.util.TRandom
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, next, nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
-
Method Details
-
current
-
setSeed
public void setSeed(long seed) -
nextInt
public int nextInt(int origin, int bound) -
nextLong
public long nextLong(long bound) -
nextLong
public long nextLong(long origin, long bound) -
nextDouble
public double nextDouble(double bound) -
nextDouble
public double nextDouble(double origin, double bound)
-