How do you assign a random int to a variable more then once
say i use this code
import random
x = 1
while x == 1:
random = random.randint(1,100)
print random
raw_input ("Push <enter> to print another random number")
It will print out the first random number but the second time it prints this error.
Traceback (most recent call last):
File "C:/Documents and Settings/tony taylor/Desktop/Idearatizer/random.py", line 4, in <module>
random = random.randint(1,100)
AttributeError: 'int' object has no attribute 'randint'
How do you get past this.
Thanks