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,TRandomGenerator
-
Method Summary
Methods inherited from class org.teavm.classlib.java.util.TRandom
next, nextGaussianMethods inherited from class org.teavm.classlib.java.lang.TObject
clone, equals, equals0, finalize, getClass0, hashCode, notify0, notifyAll0, toString, wait0, wait0Methods inherited from interface org.teavm.classlib.java.util.random.TRandomGenerator
doubles, doubles, doubles, doubles, ints, ints, ints, ints, isDeprecated, longs, longs, longs, longs, nextBoolean, nextBytes, nextDouble, nextDouble, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Method Details
-
current
-
nextInt
public int nextInt()- Specified by:
nextIntin interfaceTRandomGenerator- Overrides:
nextIntin classTRandom
-
nextInt
public int nextInt(int n) -
nextLong
public long nextLong()- Specified by:
nextLongin interfaceTRandomGenerator- Overrides:
nextLongin classTRandom
-
nextFloat
public float nextFloat()- Specified by:
nextFloatin interfaceTRandomGenerator- Overrides:
nextFloatin classTRandom
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein interfaceTRandomGenerator- Overrides:
nextDoublein classTRandom
-
setSeed
public void setSeed(long seed)
-