title: Going to a Random page PHP
body: <p>I have a link that goes to <a href="http://example.com/random.php" rel="nofollow noreferrer">http://example.com/random.php</a>, code for random.php below.</p>
  
  <pre><code>&lt;?php
  srand ((double) microtime( )*1000000);
  $random_number = rand(1,100);
  header( "Location: http://example.com/test?page=$random_number" ) ;
  ?&gt;
  </code></pre>
  
  <p>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? </p>