Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Hope someone can help me answer this question.
The problem is described as below.
I want to form a set (P) of n numbers. I randomly choose a number between 1 and n^3 and I choose n times.
My question is that what is the probability that all entries in P are unique and how can I get the probability?
The magic words are "birthday paradox".