ThreadLocalRandom
Class ThreadLocalRandom
- java.lang.Object
-
- java.util.Random
-
- java.util.concurrent.ThreadLocalRandom
- All Implemented Interfaces:
- Serializable
public class ThreadLocalRandom extends Random
A random number generator isolated to the current thread. Like the global Random
generator used by the Math
class, a ThreadLocalRandom
is initialized with an internally generated seed that may not otherwise be modified. When applicable, use of ThreadLocalRa