Assignemnt #57 Dice

Code

    ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Dice
    ///File Name: Dice.java
    ///Date: 11/16/2015
  
import java.util.Random;

public class Dice
{
    public static void main (String[] args)
    {
        Random r = new Random();
        int Dice1, Dice2, total;
        Dice1 = 1 + r.nextInt(6);
        Dice2 = 1 + r.nextInt(6);
        total = Dice1 + Dice2;
        System.out.println("HERE COMES THE DICE!");
        System.out.println("");
        System.out.println("Roll #1: " + Dice1);
        System.out.println("Roll #2: " + Dice2);
        System.out.println("The total is " + total);
    }
}



    

Picture of the output

assignment57