I tried to make a web page that mimics throwing $3$ dice. I often get $2$ or all $3$ having the same number. Trying to figure out if the random generator is broken or its normal?
So if I throw similar $3$ dice randomly, how often will two of them have the same number?
I want to test my code, what will be a good sample size? $10,000$ trials? Each is $1$-$6$. Samples of code here: http://sel2in.com/pages/prog/html/dice
Probability of getting $3$ same outcome is $\frac{6}{6^3}=\frac{6}{216}=\frac1{36}$.
Probability of getting all different outcome is $\frac{6}{6}\frac{5}{6}\frac{4}{6}=\frac{20}{36}$.
Probability of getting a pair of same outcome would be $1-$ the two quantity above.
$$1-\frac{1}{36}-\frac{20}{36}=\frac{15}{36}$$