If I choose $4$ digits for a code randomly out of the digits $0$ to $9$. What is the probability that at least $2$ of these digits are the same?
By at least I mean that you have to count with the probability that even $3$ or $4$ (all) digits are the same.
I tried to use the Hypergeometric distribution to calculate this problem but that's obviously wrong as it implies that you can not redraw a already picked digit.
How do I do this and is there any of these methods that I can use? Binomial, Hypergeometric approximated?