Oops. Fast and wrong ;)
I forgot that it returned the keys and not the values. This one works:
Code:
<?
$howmany = 3;
$quoteFile = "in.log";
$quotesArr = file($quoteFile);
$keys = array_rand($quotesArr, $howmany);
foreach ($keys as $key)
print $quotesArr[$key]."<br>";
?>