If I am understanding correctly, you simply want a horizontal table that loads random images into each of six table cells when the page loads?
This should do it but you would need further coding to eliminate duplicate images appearing in the table if you wish:
<?php
//Display a random picture, pictures are named (1.jpg) (2.jpg) etc.
$pic = rand (1,6);
?>
<table width="800">
<tr>
<th scope="col"> <?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col"> <?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col"> <?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col"> <?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col"> <?php echo "<img src= $pic.jpg>" ?></th>
<th scope="col"> <?php echo "<img src= $pic.jpg>" ?></th>
</tr>
</table>