Created
January 5, 2017 10:33
-
-
Save rbanffy/f1679a014c9d70c874dd9c49229cef14 to your computer and use it in GitHub Desktop.
This file contains 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
import random | |
import string | |
vowels = 'aeiouy' | |
specials = 'q' | |
consonants = [ | |
l for l in string.ascii_lowercase if l not in vowels and l not in specials] | |
consonants += ['qu', 'ch', 'sh', 'ph', 'lh', 'nh', 'tr'] | |
sillabes = [consonant + vowel for consonant in consonants for vowel in vowels] | |
sillabes.remove('quu') | |
for i in range(10): | |
print(''.join(random.sample(sillabes, random.randrange(2, 5)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment