Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ThreadLocalRandom; public class ThreadLocalRandomCurrentExample { public static void main(String[] args) { // Returns the LocalThreadRandom of Current thread System.out.println("Current thread's LocalThreadRandom name is: " +ThreadLocalRandom.current()); } }
Output