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