Created
September 7, 2013 05:46
-
-
Save ghl3/6473103 to your computer and use it in GitHub Desktop.
Random String
This file contains hidden or 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 | |
| def random_string(): | |
| N = random.randint(1, 10) | |
| return ''.join(random.choice(string.ascii_letters + string.digits) for x in range(N)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment