Assignment 57 and Dice

Code

///Matthew Hughs
///Period 5
///Dice
///Dice.java
///12/7/2015

import java.util.Random;

class Dice
{
    public static void main (String [] args)
    {
        Random r = new Random();
        
        int x = (1 + r.nextInt(6));
        int y = (1 + r.nextInt(6));
        
        System.out.println("Let's roll!");
        
        System.out.println("Roll 1: " + x);
        System.out.println("Roll 2: " + y);
        System.out.println("The total is " + (x + y));
    }
}
    

Picture of the output

Dice