samedi 15 décembre 2018

Pyhon3 How to make an iteration of random numbers?

I made a random number with this:

 import random

number = random.randrange(0,100,2)

I wanna iterate in it :

for i in number:
    print(i)

or like that:

for number in range (50,100):
    print number

So I wanna make a lists of random numbers, for example : 50 pieces of random numbers between (0,100)

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire