refactor random-number-test to range(0,9)