Answers for "generate random integer python randint"

1

random int python

from random import randint 
print(randint(1, 10))
Posted by: Guest on August-06-2021
1

random int python

from random import randint
random_integer_between_40_and_50 = randint(40, 50)# 40 is start and 50 is end
print(random_integer_between_40_and_50)
Posted by: Guest on January-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language