Answers for "python random numbe"

84

random number python

# generate random integer values
from random import randint

value = randint(0, 10)
print(value)
Posted by: Guest on February-15-2020
2

how to tell python to create a random numer

#to choose a random number simply do this
import random
print(random.randint(1, 100))
Posted by: Guest on July-22-2020
3

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