Answers for "rand() in python"

7

python randint

from random import randint

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

random range python

from random import randrange
print(randrange(10))
Posted by: Guest on July-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language