Created
February 19, 2021 10:36
-
-
Save rexim/fd2f57479a9b54f4db425e9995e0f334 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
#!/usr/bin/env python3 | |
import random | |
cs = "BCDFGHJKLMNPQRSTVWXZY" | |
vs = "AEIOU" | |
def generate_name(n=3): | |
result = "" | |
for i in range(n): | |
result += random.choice(cs) | |
result += random.choice(vs) | |
return result | |
if __name__ == "__main__": | |
print(generate_name()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment