This will produce random numbers until it produces a sequence of consecutive digits beginning with 1. Watch as the 3-digit number is produced much faster than the 5-digit number.
Thanks to exponents, the results here will be drastically different. the odds of a given number being produced are 1/10^n, where n= the number of digits.