random.randint(a,b) returns any number of integers in the range [a,b].
from random import randint
print(randint(0,9))
random.randrange(start, stop[, step]) returns any number of values in range(start, stop, step)
.
from random import randrange
irand = randrange(0, 10)
© 2024 OneMinuteCode. All rights reserved.