Created
July 3, 2013 09:07
-
-
Save fsodogandji/5916537 to your computer and use it in GitHub Desktop.
random string generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def id_generator(size=8, chars=string.ascii_lowercase + string.digits): | |
return ''.join(random.choice(chars) for x in range(size)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment