/ Published in: Python

this will grab a random integer between 1 and 1000, and count up to that random number, thus, a random timer.
Expand |
Embed | Plain Text
import random var = random.randrange (1, 1000) for i in range(1, var): print i, // note that this was made on a IDLE that counts one by one. ---------------------------------------------- below is one that would work in most if not all IDLEs import time import random var = random.randrange(10) time.sleep(var)
You need to login to post a comment.