python random int with no bounds code example
Example 1: random int python
import random
random.randint(1, 1000) #inclucive
Example 2: python how to generate random number in a range
import random
# generates completely random number
x = random.random()
# generates a random int
x = random.randint()
# generates a random int in a range
x = random.randint(1, 100)
# NOTE: RANGE DOESN'T WORK FOR random.random()