Assignemnt #57 and Dice

Code

///Name: Ben Borglin
///Period: 6
///Program name: Dice
///file name: Dice.java
///Date Finsihed: 10/19/15

import java.util.Random;

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

    

Picture of the output

Assignment 57