randint syntax code example Example 1: randint print(random.randint(5, 11)) #5 = start #11 = stop Example 2: randint random.randint(a, b)