This could maybe help you on the way :
<?php
$books_pic[] = 'book_a.jpg';
$books_url[] = 'book_a.html';
$books_txt[] = 'This is book A';
$books_pic[] = 'book_b.jpg';
$books_url[] = 'book_b.html';
$books_txt[] = 'This is book B';
$books_pic[] = 'book_c.jpg';
$books_url[] = 'book_c.html';
$books_txt[] = 'This is book C';
$books = count($books_txt);
$book_nr = rand(0,$books-1);
$pic = $books_pic[$book_nr];
$url = $books_url[$book_nr];
$txt = $books_txt[$book_nr];
echo "<table border=0 cellpadding=10 cellspacing=1 bgcolor='#000000'>\n";
echo "<tr bgcolor='#dddddd'>\n";
echo "<td align='center'>\n";
echo "<img src='$pic' border=0 hspace=5 vspace=5 width=100 height=100><br>\n";
echo "$txt<br>\n<a href='$url'>View the book</a><br>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
Pheeew! Don't say I don't write code - try it out at www.kobox.dk/tube/random_feature/random.php