Well technically this little php snippet doesn't generate random quotes, that would just be weird

However, it does select a quote randomly from a user generated quote database.
<?php
function quote_generate()
{
$quote = array("An apple a day keeps the doctor away.",
"A bird in the hand is worth two in the bush.");
return($quote[rand(0, count($quote) - 1)]);
}
echo quote_generate();
?>
Simple and effective methinks. To add your own quotes just enclose the string in " " and separate each of them by commas. I use a similar variant of the script on my site to have random quotes pop up in the news page when people visit the site.