Online Java Compiler By
JavaTpoint.com
import java.util.concurrent.ThreadLocalRandom; public class ThreadLocalRandomLongsExample7 { public static void main(String[] args) { // Returns exception because steamSize is negative System.out.println("stream of pseudorandom double value is: " +ThreadLocalRandom.current().doubles(-10, 20, 30)); } }
Output