MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / get_random_key

Function get_random_key

ciphers/simple_substitution_cipher.py:71–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def get_random_key() -> str:
72 key = list(LETTERS)
73 random.shuffle(key)
74 return "".join(key)
75
76
77if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected