Q: The testSpinStatistics method in the SlotsTest class is designed to test SlotMachine's spin method. How would you design an experiment to determine if a particular slot machine is fair, that is: do the symbols appear as frequently as one would expect given the machine parameters? -------------------------------------------------------------------------------------------- A#1: What we need to do is to check the frequency of the symbols. The symbols which have a higher multiplier and the symbols which correspond to fewer virtual reels should come up fewer times than other numbers, for the casino owners to make a decent amt of money. A#2: I would calculate an expected number of an event occurance GIVEN the machine is fair. Then, I would spin the machine 100 times, and count the number of actual occurances for the event in question. If the expected is TOO far from the actual, then I would assume the machine is NOT fair. A#3: You could run hundreds or possibly thousands of test "pulls", and subsequently analyze the data. According to the central limit theorem, the distribution of the means of independent samples will approximate a Gaussian distribution as long as your sample size is large enough. Since each pull of the machine is an independent event with a known probability, one should be able to test the fairness of the machine. The more samples taken, the more accurate your results will be.