Answers for "how to get random number from range in python"

4

random range python

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

python random integer in range

import random
print(random.randint(0,9))
Posted by: Guest on February-15-2021

Code answers related to "how to get random number from range in python"

Python Answers by Framework

Browse Popular Code Answers by Language