ok, your right im tired too. I did find the shuffle from the manual and got a working script, but the more complex part I think, limiting to a certain amount of records is tough!
any ideas:
<?php
$lines = file('/AAACars.data');
shuffle($lines);
foreach ($lines as $line) {
$parts = explode('|', $line);
$numElements = count($parts);
if ($parts[24] == $_GET['mk']) {
echo "<a href=\"/english/AAACars.$parts[0].html?db_id=$parts[0]&mk=$mk&cyl=";
include '/templates/cyl.php';
echo "$parts[51]</a><br>";
}}
echo "$numElements";
?>