Are you asking something like this ?
PHP Code:
$images1[] = 'img/1.jpg';
$images1[] = 'img/2.jpg';
$images1[] = 'img/3.jpg';
$images1[] = 'img/4.jpg';
$images1[] = 'img/5.jpg';
//you can add as many images as you want, then,
$images2[] = 'img/10.jpg';
$images2[] = 'img/20.jpg';
$images2[] = 'img/30.jpg';
$images2[] = 'img/40.jpg';
$images2[] = 'img/50.jpg';
//add the same number of images as images1
//and you can keep adding $images3, $images4, etc. Now,
srand ((double) microtime() * 1000000);
$random_number = rand(0,count($images1)-1);
print '<tr><td>'.$images1[$random_number].'</td></tr>';
print '<tr><td>'.$images2[$random_number].'</td></tr>';
In this way, each time the browser will load, you will get a new image, which itself consists of two parts which are inter-related. Just take care that 1.jpg relates to 10.jpg and so on ... rest will be fine. Hope I've understood the question ...
Bookmarks