public class ThreadLocalRandom extends Random
Modifier and Type | Method and Description |
---|---|
static ThreadLocalRandom |
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)
Sets the seed of this random number generator using a single long seed.
|
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextInt, nextInt, nextLong
public static ThreadLocalRandom current()
public void setSeed(long seed)
Random
public int nextInt(int origin, int bound)
public long nextLong(long bound)
public long nextLong(long origin, long bound)
public double nextDouble(double bound)
public double nextDouble(double origin, double bound)