Skip to content

Instantly share code, notes, and snippets.

@turnipsoup
Created September 11, 2019 04:03
Show Gist options
  • Save turnipsoup/f42435ba2a1430f3ac126df7652cb966 to your computer and use it in GitHub Desktop.
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.
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