We draw n independent Uniform(0,1) samples and want the probability that at least one falls in the interval [0.7, 0.72] to be at least 95%.
Its length is 0.02.
So a single sample misses with probability 0.98.
This is the first integer that reaches the 95% threshold.
It is easier to compute the probability that none of the samples land in the interval, then subtract from 1.
Therefore, the smallest integer is n = 149.
Move the slider or enter a value for n:
For n = 149, the probability is 95.06%, so it works.
Just below 95%, so it is not enough.
Just above 95%, so it does work.
You need n = 149 samples.