I apologize if question is too simple!
For example, is the probability of generating 2, 8-digit numbers that have the last 4 digits match the same as the probability of the last 4 matching with a 12 digit number?
For an 8 digit number:
10^8 total possible numbers and 10*10*10*10*1*1*1*1 = 10^4 / 10^8 = 1/10,000 probability of generating 2 with the same last 4.
For 12 digit:
10^12 total possible. 10^8 / 10^12 = 1/10,000 probability again of generating 2 with the same last 4?
Is this correct?