Answer:
What is the probability that Hannah only has to buy 3 or less boxes before getting a prize?
1 - (1 - 0.4)^3 = 0.784 = 78.4%
if we use random number generator ranging from 1-10 and assign 1-4 as the prize and 5-10 as no prize, what is the best way to perform the simulation?
We generate 3 numbers if all in the range of 5-10 we write a L if not we write X.
We repeat the experiment several times an dived the numbers of X thru the numbers of letters we have written.