Random random = new Random(); for(int i = 0; i < 100; i++) { System.out.println(random.nextDouble()); }