UNB/ CS/ David Bremner/ teaching/ java/ Dice.java
import java.util.Random;

public class Dice
{  public static void main(String[] args)
   {  Random generator = new Random();

      // roll dice ten times      
   
      for (int i = 1; i <= 10; i++)
      {  int d = 1 + generator.nextInt(6);
         System.out.print(d + " ");
      }
      System.out.println();
   }
}