Fixed the random number generation to include 9 or 99.