In [ ]:
import random
In [ ]:
numeros = [1,2,3,4,5,6,7,8,9,10]
In [ ]:
help(random.choice)
In [ ]:
random.choice(numeros)
In [ ]:
help(random.randint)
In [ ]:
random.randint(1, 100)
In [1]:
import random
while True:
num = input("Digite o número de facses: ")
if num == "exit":
break
num = int(num)
print(random.randint(1, num))
In [ ]: