There is no param to nextDouble(). It returns a number between 0.0 and 1.0.

One way of getting it to do it with 10 is to multiply the result of nextDouble by 10 and put it in a double...