i made a thing to make syllables for me when i plug in some vowels and consonants:
import random
vowels = ["a", "a", "ä", "e", "e", "ë", "œ", "ø", "i", "i", "ï", "o", "o", "ö", "u", "u", "ü",
"ă", "ĕ", "ô", "au", "ou", "a", "a", "ä", "e", "e", "ë", "œ", "ø", "i", "i", "ï", "o", "o", "ö", "u", "u", "ü"
, "ă", "ĕ", "ô", "au", "ou", "a", "e", "i", "o", "u", "ar", "er", "ir", "or", "ur"]
consonants = ["þ", "ð", "ç", "š", "tš", "z", "t", "n", "w", "f", "r", "d", "s", "ng"]
vowel = random.randint(0, 53)
vowel2 = random.randint(0, 53)
consonant = random.randint(0, 13)
consonant2 = random.randint(0, 13)
# tssc = ca thssc = can thssv = ate tssv = at
while vowel == 49, 50, 51, 52, 53 and consonant == 10:
tssc = consonants[consonant] + vowels[vowel]
thssc = consonants[consonant] + vowels[vowel] + consonants[consonant2]
thssv = vowels[vowel] + consonants[consonant] + vowels[vowel2]
tssv = vowels[vowel] + consonants[consonant]
capornah = input("cap or nah ")
which1 = input("which syllabley ou want ")
if capornah == "cap":
if which1 == "tssc":
print(tssc.capitalize())
elif which1 == "thssc":
print(thssc.capitalize())
elif which1 == "thssv":
print(thssv.capitalize())
elif which1 == "tssv":
print(thssc.capitalize())
else:
print("bruh")
elif capornah == "nah":
if which1 == "tssc":
print(tssc)
elif which1 == "thssc":
print(thssc)
elif which1 == "thssv":
print(thssv)
elif which1 == "tssv":
print(thssc)
else:
print("bruh")
else:
print("double bruh")
dont fix the vowels, idc
anyway, i made that “while vowel == 49, 50, 51, 52, 53 and consonant == 10:” so that it dosent generate “ar” as a vowel and “r” right after. but i dont know how i can reroll a randint. does anyone know a way to do it?