For which situation could flipping a coin be used to generate a random sample
A: To predict if a machine will be defective or not. B: To predict student performance on an exam. C: To predict the number of peanuts in a container. D: to predict which of four players will win a gold tournament.
I put A but Im not sure.