A Silly Name Generator

You may have seen Web-based toys before that take your name and transform it into a new name, like "Your Superhero Name," or "Your Name if You Were a Character in The Sopranos.
" We've settled for simply being ridiculous, so Script 14.8 can show you how to get your own, new, silly name. In the process, you can see how to combine string handling, arrays, error checking, and form validation into one darned silly script.

Script 14.8. This script generates a silly name from two arrays, based on characters from the first and last names entered by the user.