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) |
next, nextBoolean, nextBytes, nextDouble, nextFloat, nextInt, nextInt, nextLongpublic static ThreadLocalRandom current()
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)
Copyright © 2026. All rights reserved.