hello everyone

this problem is in cryptography but it's a pure Probability problem.

if we have a text of "M" length and we randomly pick 3 number between 1 and M.

we observe the letters in those places.

what is the Probability that we will have two identical letters?

i thought i could calculate it using the birthday paradox..

am i right?