Code:
<?
$Buttons = 5; // # of button to show
$Img[] = "<a href='http://www.friend1.com'><IMG src='images/1.gif'></a>";
$Img[] = "<a href='http://www.friend2.com'><IMG src='images/2.gif'></a>";
$Img[] = "<a href='http://www.friend3.com'><IMG src='images/3.gif'></a>";
//over and over like that ^^
srand ((float) microtime() * 10000000);
$Keys = array_rand($Img, 5);
for($K = 0; $K < $Buttons; $K++){
echo "".$Img[$Keys[$K]]." <br> ";
}
?>
Then, the $Button = 5; the 5 is how much of those random things are going to be shown.



.com .info
We're the affordable, reliable place to host your site. And unlike the competition, there's no set up fee and no annual commitment.
Our highly trained, courteous support staff is waiting to help. We'll resolve any issue to your complete satisfaction.