DEV Community

Cover image for How to create a random word generator program
Brunner
Brunner

Posted on

How to create a random word generator program

One use of a word generator application is to generate new website domain names
A word generator works like this:

  1. You store all the consonants in box A
  2. You store all the vowels in box B
  3. You let computer randomly pick some consonants from box A into a new box called box C
  4. The computer also randomly picks some vowels from box B into box C
  5. Now box C contains both consonants and vowels.
  6. Finally, you let the computer randomly arrange the content of box C. Whatever is the result of this arrangement is the 'generated word'

Top comments (0)