[2015-10-26] Challenge #238 [Easy] Consonants and Vowels : dailyprogrammer
You were hired to create words for a new language. However, your boss wants these words to follow a strict pattern of consonants and vowels. You are bad at creating words by yourself, so you decide it would be best to randomly generate them.
Your task is to create a program that generates a random word given a pattern of consonants (c) and vowels (v).
Input Description
Any string of the letters c and v, uppercase or lowercase.
Output Description
A random lowercase string of letters in which consonants (bcdfghjklmnpqrstvwxyz) occupy the given 'c' indices and vowels (aeiou) occupy the given 'v' indices.
Read full article from [2015-10-26] Challenge #238 [Easy] Consonants and Vowels : dailyprogrammer
No comments:
Post a Comment