Question 904487: What's the probability of identical strings occurring if you create a string with two random letters, followed by four random numbers?
Thanks,
Answer by Theo(13342) (Show Source):
You can put this solution on YOUR website! there are 26 letters in the alphabet and 10 numbers for each digit.
the number of possible combinations is equal to 26^2 * 10^4 assuming you can reuse the same letter and reuse the same number.
example:
CC4444 is a valid combination.
you generate your first string and any combination will be valid.
now you generate your second string.
only 1 out of the 26^2 * 10^4 possible combinations will match it, therefore the probability is 1 / (26^2 * 10^4).
if you multiply that out, you get a probability of 1 / 6,760,000.
|
|
|