public class Die { // The data member face is an integer that can take the // values 1-6. private int face; public Die() { roll(); } public int getFace() { return face; } public void roll() { // roll the die (choose a random int 1-6) face = ((int) (Math.random() * 6)) + 1; //face = -1; } } // end of Die class