How can I generate random integers between 0 and 9 (inclusive) in Python?
For example, 0, 1, 2, 3, 4
0
1
2
3
4
if you want to use numpy then use the following:
import numpy as np print(np.random.randint(0,10))