Skip to content

Instantly share code, notes, and snippets.

@mbchoa
Created November 13, 2015 15:17
Show Gist options
  • Save mbchoa/fa35cc47293c7df17f07 to your computer and use it in GitHub Desktop.
Save mbchoa/fa35cc47293c7df17f07 to your computer and use it in GitHub Desktop.
Python module which will contain various functions for randomly generating values.
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