public void play() { print("Toss Coin: "); switch (rand.nextInt(2)) { case 0: println("Heads"); return; case 1: println("Tails"); return; default: println("OnEdge"); return; } }
public void play() { print("Throw Dice: " + (rand.nextInt(6) + 1)); }