Probability of a 6-digit number with at most three digits repeated?

542 Views Asked by At

What is the probability that a 6 digit number selected at random contains at most three digits repeated?

I'm new to probability, and try as I might, I cannot solve this. Any help will be appreciated.

P.S. first digit cannot be zero