1  /**
  2     This program prints ten random numbers between 0 and 1.
  3  */
  4  public class RandomDemo
  5  {
  6     public static void main(String[] args)
  7     {  
  8        for (int i = 1; i <= 10; i++)
  9        {  
 10           double r = Math.random();
 11           System.out.println(r);
 12        }
 13     }
 14  }