Skip to content

Instantly share code, notes, and snippets.

@fsodogandji
Created July 3, 2013 09:07
Show Gist options
  • Save fsodogandji/5916537 to your computer and use it in GitHub Desktop.
Save fsodogandji/5916537 to your computer and use it in GitHub Desktop.
random string generator
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