jeudi 30 avril 2015

Python using 'randint' gives error [on hold]

import random
rand = 0

while True:
    rand = rand.randint(70, 123)
    print (rand)

Gives this error...

rand = rand.randint(70, 123)
AttributeError: 'int' object has no attribute 'randint'

I really don't know why this doesn't work.




Aucun commentaire:

Enregistrer un commentaire