Lines Matching refs:ThreadLocalRandom
43 * java.lang.Math} class, a {@code ThreadLocalRandom} is initialized
45 * modified. When applicable, use of {@code ThreadLocalRandom} rather
48 * {@code ThreadLocalRandom} is particularly appropriate when multiple
53 * {@code ThreadLocalRandom.current().nextX(...)} (where
56 * accidently share a {@code ThreadLocalRandom} across multiple threads.
64 public class ThreadLocalRandom extends Random {
91 private static final ThreadLocal<ThreadLocalRandom> localRandom =
92 new ThreadLocal<ThreadLocalRandom>() {
93 protected ThreadLocalRandom initialValue() {
94 return new ThreadLocalRandom();
102 ThreadLocalRandom() {
108 * Returns the current thread's {@code ThreadLocalRandom}.
110 * @return the current thread's {@code ThreadLocalRandom}
112 public static ThreadLocalRandom current() {