I have a link that goes to http://example.com/random.php, code for random.php below.
<?php
srand ((double) microtime( )*1000000);
$random_number = rand(1,100);
header( "Location: http://example.com/test?page=$random_number" ) ;
?>
Basically what I want it to do is link to a random page. It works initially, but after the first click it keeps linking back to the same supposedly random page every single time. Any idea how to fix this? or maybe a better way to approach the problem entirely?