Created
November 13, 2015 15:17
-
-
Save mbchoa/fa35cc47293c7df17f07 to your computer and use it in GitHub Desktop.
Python module which will contain various functions for randomly generating values.
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 | |
def rand_string(length): | |
return ''.join(random.choice(string.printable) for x in range(length)) | |
print rand_string(64) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment