Ten Random Passwords

Inspired by an xkcd comic, I wrote this random password generator. It goes a little farther in trying to make things memorable by constructing a random sentence using the pattern [noun] [verb] [number] [adjective] [noun] [punctuation].

I include the number and punctuation for the sake of systems that require numeric and special characters. You can always not use them.

    $n1$v$d$a$n2$p "; } echo "
"; $possibs = count($noun)*count($noun)*count($verb)*count($adj)*30; echo "bits of entropy=",(int)(log($possibs)/log(2)),"
\n"; ?>