Last active
January 29, 2020 16:02
-
-
Save JoseHdez2/7bb29ecaf9141d755c96dec77b005e55 to your computer and use it in GitHub Desktop.
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 | |
# https://pynative.com/python-generate-random-string/ | |
def randomString(stringLength=10): | |
"""Generate a random string of fixed length """ | |
letters = string.ascii_lowercase | |
return ''.join(random.choice(letters) for i in range(stringLength)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment