Skip to content

Instantly share code, notes, and snippets.

@lonnen
Created April 9, 2013 21:56
Show Gist options
  • Save lonnen/5349779 to your computer and use it in GitHub Desktop.
Save lonnen/5349779 to your computer and use it in GitHub Desktop.
generate a random alphanumeric string
import string
from random import sample
length = 16
print ''.join(sample(string.letters + string.digits, length))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment