Skip to content

Instantly share code, notes, and snippets.

@cbuctok
Last active October 12, 2016 14:18
Show Gist options
  • Save cbuctok/5f0c0f7a551613987c04a35dc1ca4ea9 to your computer and use it in GitHub Desktop.
Save cbuctok/5f0c0f7a551613987c04a35dc1ca4ea9 to your computer and use it in GitHub Desktop.
Random py2
import string
from random import sample, choice
chars = string.letters + string.digits
print ''.join(choice(chars) for _ in range(4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment