Skip to content

Instantly share code, notes, and snippets.

@andy-b-84
Created March 27, 2017 08:13
Show Gist options
  • Save andy-b-84/ae8dda1f4041e1605b736eeac2f7c5e0 to your computer and use it in GitHub Desktop.
Save andy-b-84/ae8dda1f4041e1605b736eeac2f7c5e0 to your computer and use it in GitHub Desktop.
import string
from random import sample, choice
chars = string.letters + string.digits
length = 10
// chars = string.letters + string.digits + string.punctuation
chars = string.letters + string.digits + '!#$%&\()*+,./<=>?'
''.join(choice(chars) for _ in range(length))
@andy-b-84
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment