vendredi 28 octobre 2016

Python - Radom Number Integer

How do you write 100 random numbers one number per line. The random numbers must be integers in the range [0,100].

for x in range(0, 100):
     print(random.randint(0, 100)

This is what I am doing, but it is not working.




Aucun commentaire:

Enregistrer un commentaire