Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ThreadLocalRandom; public class ThreadLocalRandomIntsExample3 { public static void main(String[] args) { // Returns exception because origin is greater than bound System.out.println("stream of pseudorandom int value is: " +ThreadLocalRandom.current().ints(30, 10)); } }
Output