// RandomPickTest.java - tests the required interface for class RandomPick // Use AS-IS to test RandomPick.java (CS 5JA assignment 5, part 1a) // cmc, updated 2/24/09 public class RandomPickTest { public static void main(String[] args) { RandomPick p = new RandomPick(0, 2); // just checks a small range System.out.println("p == 0 ? " + p.goodGuess(0) + "\n" + "p == 1 ? " + p.goodGuess(1) + "\n" + "p == 2 ? " + p.goodGuess(2) + "\n" + "p > 0 ? " + p.lowGuess(0) + "\n" + "p < 2 ? " + p.highGuess(2)); System.out.println("Note: run me again to verify randomness, " + "and that range of p is 0 to 2."); } }