# Generate random integers between 0 and 9

Try:

`from random import randrangeprint(randrange(10))`

**Docs:** https://docs.python.org/3/library/random.html#random.randrange

`import randomprint(random.randint(0,9))`

`random.randint(a, b)`

Return a random integer N such that a <= N <= b.

Docs: https://docs.python.org/3.1/library/random.html#random.randint