In fact, random numbers probability of uniqueness is actually a lot smaller than what one can expect, without knowledge of what's called the birthday problem.
In a nutshell - Take a group of random people. What are the chances two of them was born in the same date (day and month, year not included)?
Turns out, that if the group contains 32 people, that chance is 50%. With 70 people in the group, its 99.9%.
So the chances of getting the same random number twice when your range is between 0 and 100 increase rapidly the larger the group is.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In fact, random numbers probability of uniqueness is actually a lot smaller than what one can expect, without knowledge of what's called the birthday problem.
In a nutshell - Take a group of random people. What are the chances two of them was born in the same date (day and month, year not included)?
Turns out, that if the group contains 32 people, that chance is 50%. With 70 people in the group, its 99.9%.
So the chances of getting the same random number twice when your range is between 0 and 100 increase rapidly the larger the group is.