i have this code which works great, only problem is i dont want the same images to be displayed, is there any way to change this to stop the repeated images.
html
<?php include "random.php"; ?></a><?php include "random.php"; ?></a><?php include "random.php"; ?>
php
<?php
srand((float) microtime() * 10000000);
$image[1]['pic']='/images/1.jpg';
$image[1]['link']='x';
$image[2]['pic']='/images/2.jpg';
$image[2]['link']='x';
$image[3]['pic']='/images/3.jpg';
$image[3]['link']='x/';
$image[4]['pic']='/images/4.jpg';
$image[4]['link']='x';
$image[5]['pic']='/images/5.jpg';
$image[5]['link']='x';
$rn = array_rand($image);
echo '<a href="'.$image[$rn]['link'].'">';
echo '<img src="'.$image[$rn]['pic'].'">';
?>