Here:
<title>Now opening random page..</title>
<script language="JavaScript">
var newLocation = new Array();
var index;
newLocation[0] = 'http://www.google.com';
newLocation[1] = 'http://www.allgamesallfree.com/';
newLocation[2] = 'http://www.yahoo.com';
newLocation[3] = 'http://www.msn.com';
index = Math.floor(Math.random()*newLocation.length);
document.write('<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL='+newLocation[index]+'\">');
</script>
No mysql or php required, just copy that into html, add as many links as you want using that format then make a link to the html page on your site and it will bring you to a different page everytime, I do this to make a random game button on my site
http://www.allgamesallfree.com so you can see the script at work here:
http://www.allgamesallfree.com/RandomGame.html