Random URLs

Display a random link on your site

<?php
$urls = array("http://asp.programmershelp.co.uk" ,
"http://vwww.programmershelp.co.uk" ,
"http://javascript.programmershelp.co.uk" );
$titles = array("ASP site" ,
"VBScript site" ,
"Javascript site");
//generate a random number
srand(time());
$random = (rand()%3);
//display link
echo ("<a href = \"$urls[$random]\">$titles[$random]</a>");
?>