Assignemnt #62 and Dice Doubles

Code

    ///Name: Luke Shin
    ///Period: 7
    ///Project Name:  DiceTillDouble
    ///File Name:  DiceTillDouble.java
    ///Date: 12/10/2015
    
    import java.util.Random;
    
    public class DiceTillDouble{
        public static void main(String[] args){
            
            Random r = new Random();
            
            int num = 0;
            int num1 = 0;
            
            do{
            num = (1+r.nextInt(6));
            num1 = (1+r.nextInt(6));
            
            System.out.println("Roll #1: " + num);
            System.out.println("Roll #2: " + num1);
                
            System.out.println("total: " + (num + num1));
            }
            while (num!=num1);
        }
    }

    

Picture of the output

Assignment 62