Generate random integers between 0 and 9

Try random.randrange:

from random import randrange
print(randrange(10))

Leave a Comment