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