Skip to content

Instantly share code, notes, and snippets.

@rbanffy
Created January 5, 2017 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbanffy/f1679a014c9d70c874dd9c49229cef14 to your computer and use it in GitHub Desktop.
Save rbanffy/f1679a014c9d70c874dd9c49229cef14 to your computer and use it in GitHub Desktop.
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