Answers for "random module python 3.9"

5

python random

from random import randint # Import randint from random
print(randint(1,20)) # Gets random number from first parameter to the second
Posted by: Guest on October-07-2020
2

python randint

from random import randint
print(randint(1,2))
Posted by: Guest on October-03-2020

Code answers related to "random module python 3.9"

Python Answers by Framework

Browse Popular Code Answers by Language