Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ThreadLocalRandom; public class ThreadLocalRandomIntsExample4 { public static void main(String[] args) { // Returns a stream of int values System.out.println("stream of int value is: " +ThreadLocalRandom.current().ints(3899)); } }
Output