Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ThreadLocalRandom; public class ThreadLocalRandomNextIntExample3 { public static void main(String[] args) { // Returns a pseudorandom, uniformly distributed integer value between 0 and 38000 System.out.println("Random int value is: " +ThreadLocalRandom.current().nextInt(38000)); } }
Output