Searched defs:ThreadLocalRandom (Results 1 - 1 of 1) sorted by relevance

/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DThreadLocalRandom.java43 * 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 { class in inherits:Random
91 private static final ThreadLocal<ThreadLocalRandom> localRandom =
92 new ThreadLocal<ThreadLocalRandom>() {
93 protected ThreadLocalRandom initialValue() {
94 return new ThreadLocalRandom();
102 ThreadLocalRandom() { method in class:ThreadLocalRandom
[all...]

Completed in 60 milliseconds