Answers for "python get random in range"

7

python randint

from random import randint

print(randint(3, 9))
Posted by: Guest on January-16-2020
4

random in python

print(random.randint(1, 100))
print(random.random())
Posted by: Guest on June-05-2020

Code answers related to "python get random in range"

Python Answers by Framework

Browse Popular Code Answers by Language