mercredi 26 février 2020

In the randrange function of random module in python is the upper limit specified in the randrange function included or excluded?

import random
l = []
for i in range(50):
    l.append(random.randint(1, 100))
print(l)

Now in the list of 50 random numbers is there a possibility ever of 100 being included?




Aucun commentaire:

Enregistrer un commentaire