import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int x = (int) (6*Math.random() + 1);
int y = (int) (6*Math.random() + 1);
if ( x != y )
System.out.println("You rolled a " + x + " and a " + y);
else
System.out.println("You rolled a pair of " + x + "'s");
}
}
|