Last active
August 29, 2015 14:04
-
-
Save samarthbhargav/959ab91942ce1e8d1e77 to your computer and use it in GitHub Desktop.
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 string | |
import random | |
def append_random(existing_str, length): | |
while len(existing_str) != length: | |
existing_str += string.letters[:26][random.randint(0,26)] | |
return existing_str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment