*
If I change the method to nextInt, it works fine though. How can I use nextDouble without getting the error message? Method next.Double cannot be applied. Required : no arguments, Found: int. Keep in mind, I need the values of the randoms to be in the range 10-20.
import java.util.Random; class Randoms { public static void main (String[] args) { Random r = new Random(); for (int x = 0; x < 10000; x++) { double random = r.nextDouble(10) + 10; // This line is not working. * System.out.println(random); } } }