///Name: Morgan Kaplan
///Period: 5
///Project Name: Dice Doubles
///File Name: DiceDouble.java
import java.util.Random;
public class DiceDouble
{
public static void main ( String[] args )
{
Random r = new Random();
int x=1, z=2;
while (x !=z)
{
x = 1 + r.nextInt(6);
z= 1 + r.nextInt(6);
System.out.println( " Roll # 1 = " + x + " ");
System.out.println( " Roll # 2 = " + z + " ");
System.out.println( " Your total is " + ( x + z ) + " ");
}
}
}