Six-digit confirmation code statistics
When a sequence of six digits is chosen at random:
- All digits are distinct 15.12% of the time.
- The sequence matches ‘x**x**’, ‘*x**x*’, or ‘**x**x’ 9.07% of the time.
- At least two distinct digits are repeated 28.31% of the time.
- A digit occurs 3 or more times 15.76% of the time.
- At least one of the above is true 63.71% of the time.
Script here. Now I can stop wondering if that weird coincidence is evidence that the six digits aren’t actually random.