Write a program to print 15 random numbers using forEach of java 8?
Random random = new Random();
random.ints().limit(15).forEach(System.out::println);
BY Best Interview Question ON 13 Jan 2019
Random random = new Random();
random.ints().limit(15).forEach(System.out::println);