Cómo crear un número aleatorio entre 1 y 10 en Python
smallest = 0
largest = 100
random_number = random.randint(smallest, largest - 1)
Helpful Hare
smallest = 0
largest = 100
random_number = random.randint(smallest, largest - 1)
from random import *
print(randint(1, 100)) # Pick a random number between 1 and 100.