Last active
August 29, 2015 14:04
-
-
Save acatejr/06305103b75d43ed76fe to your computer and use it in GitHub Desktop.
Python Random String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
string_length = 10 | |
random_string = u''.join(random.choice(string.ascii_letters) for x in range(string_length)) | |
print random_string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment