randint (a, b) code example Example: random python from random import randint randint(0,5)#0<=randomNumber<=5