What's wrong with how i am doing it
<?
$urls = array(
1 => "http://www.url1.com",
2 => "http://www.url2.com",
3 => "http://www.url3.com",
4 => "http://www.url4.com",
);
srand ((double) microtime() * 1000000);
$randnum = rand(1,4);
$goto = $urls[$randnum];
header("Location: $goto");
?>
|