Fixed random number generation to generate the correct number of digits