Skip to content

Instantly share code, notes, and snippets.

@perezpaya
Created October 13, 2012 00:40
Show Gist options
  • Save perezpaya/3882614 to your computer and use it in GitHub Desktop.
Save perezpaya/3882614 to your computer and use it in GitHub Desktop.
import string
import random
import time
import math
def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for x in range(size))
while 1:
print id_generator(int(random.random() * 10), string.ascii_uppercase);
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment