#!/usr/bin/env python from random import randint, choice vowels = 'aeiouy' consonants = 'bcdfghjklmnpqrstvwxyz' length = randint(3, 7) name = choice(consonants) for i in xrange(length): if name[i] == 'q': name += 'u' name += choice(vowels) elif name[i] in ['c', 't']: if randint(1, 5) == 2: name += 'h' else: name += choice(vowels) elif name[i] in consonants: name += choice(vowels) else: name += choice(consonants) print name