Answers for "what library does random some from in python?"

11

python random number

from random import randint

print(randint(1,3))

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

python randint

from random import randint

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

Code answers related to "what library does random some from in python?"

Python Answers by Framework

Browse Popular Code Answers by Language