Concurrent Random Numbers In JDK 7, java.util.concurrent includes a convenience class, ThreadLocalRandom, for applications that expect to use random numbers from multiple threads or ForkJoinTasks. For concurrent access, using ThreadLocalRandom instea…