//******************************************************************** // DiceRoll.java Author: Saiful Islam // // Randomly stimulates and displays the result of a dice roll //******************************************************************** import java.util.*; public class DiceRoll { public static void main( String[] args ) { int die1, die2, diceSum, rollCount, i; //Creates a new Scanner object Scanner input = new Scanner(System.in); System.out.println ("Roll the dice how many times?"); rollCount = input.nextInt(); System.out.println ("Die 1" + "\t" + "Die 2" + "\t" + "Some of dice") System.out.println ("-----" + "\t" + "-----" + "\t" + "------------") for (int i = 0; i < rollCount; i++); { die1 = Random.nextInt(6); die2 = Random.nextInt(6); diceSum = dice1 + dice2; System.out.println();