I'm using random.randint() in python , but today i noticed that something is going wrong : The random.randint() function returns only 1 or 2 , but i set the range by 1 to 11 . This is my script :
import random
while True:
Limit1 = input("Limit 1 : ")
Limit2 = input("Limit 2 : ")
print("your random number is : " + str(random.randint(int(Limit1),int(Limit2)) ) )
There's another library or a way to solve this ?
Aucun commentaire:
Enregistrer un commentaire