Answers for "python generate a number"

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
11

python random number

from random import randint

print(randint(1,3))

#Possible Outputs#
#1
#2
#3
Posted by: Guest on March-07-2020

Code answers related to "python generate a number"

Python Answers by Framework

Browse Popular Code Answers by Language