Answers for "what library is random from in python"

87

python random

# imports random
import random
# randint generates a random integar between the first parameter and the second
print(random.randint(1, 100))
Posted by: Guest on December-23-2019
6

python random float

# The random function random() returns a random float between
# zero and one
import random
random.random()
Posted by: Guest on February-28-2020

Code answers related to "what library is random from in python"

Python Answers by Framework

Browse Popular Code Answers by Language