Huvepige
<?
// Name-Your-Baby script by Icey
// Written for Ravedave
// http://en.wikipedia.org/wiki/User:Ravedave/babyname
// I release this as Public Domain
// vowels
$vowels = 'aeiou';
// consonants
$consonants = 'bcdfghjklmnpqrstvwxyz';
// generate a name of random length
for ($n = mt_rand(0, 1); $n <= mt_rand(5, 12); $n++)
{
// switch between vowels and consonants
if (!($n % 2))
// add a random vowel
$name .= $vowels[mt_rand(1, strlen($vowels))-1];
else
// add a random consonant
$name .= $consonants[mt_rand(1, strlen($consonants))-1];
}
// show the name, with a capital letter at the start
echo strtoupper(substr($name, 1, 1)) . substr($name, 2, strlen($name)-1);
// show the source
echo '<hr/><div style="font:normal 75% monospace">' . show_source('name.php', TRUE) . '</div>';
?>