WorldSimulation / utils.py
yingqianjiang-lingoace
Add application file
bcf0302
raw
history blame
738 Bytes
import string
import random
def get_random_name():
vowels = "aeiou"
consonants = "".join(set(string.ascii_lowercase) - set(vowels))
name = random.choice(consonants).upper()
name += random.choice(vowels)
name += random.choice(consonants)
name += random.choice(vowels)
return name
def get_random_clan_name():
vowels = "aeiou"
consonants = "".join(set(string.ascii_lowercase) - set(vowels))
name = random.choice(consonants).upper()
name += random.choice(vowels)
name += random.choice(consonants)
name += random.choice(vowels)
name += random.choice(consonants)
name += random.choice(vowels)
name += random.choice(consonants)
name += random.choice(vowels)
return name