// Generate random doubles 0.0 <= d < 10.0
import java.util.Random;
// ...

// This time, to get different results each run,
// Default seed the generator with the current time in milliseconds.
Random wheel = new Random();
//...
for ( int i=0; i<100; i++ )
   {
   // generate a number between 0.0 <= x < 1.0, then scale
   double d = wheel.nextDouble() * 10.0d;
   out.println( d );
   }