Skip to content

Instantly share code, notes, and snippets.

@jsatt
Created August 30, 2013 16:38
Show Gist options
  • Save jsatt/6391808 to your computer and use it in GitHub Desktop.
Save jsatt/6391808 to your computer and use it in GitHub Desktop.
Generate a random string in python
import random
import string
rand_string = ''.join(random.choice(string.ascii_letters + string.digits)
for i in xrange(random.randint(6, 20)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment