Created
September 11, 2019 04:03
-
-
Save turnipsoup/f42435ba2a1430f3ac126df7652cb966 to your computer and use it in GitHub Desktop.
Makes an ID. Don't want to have to type the characters again.
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
def uniqIdenGen(): | |
char_options = [ | |
"A","B","C","D","E","F","G","H","I","J", | |
"K","L","M","N","O","P","Q","R","S","T", | |
"U","V","W","X","Y","Z", | |
"1","2","3","4","5","6","7","8","9","0" | |
] | |
returned_id = [] | |
for i in range(16): | |
returned_id.append(char_options[random.randint(0,len(char_options) - 1)]) | |
return "".join(returned_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment