title: random number generate in 5 minutes
body: <p>How can I generate a random number in every 5 minutes? When I searched for it, I found <a href="https://stackoverflow.com/questions/6662417/need-to-generate-random-number-after-time-interval">Need to generate random number after time interval</a>. Using that, I coded like,</p>
  
  <pre><code>    &lt;?
      $seed = floor(time()/(60*60*12));
      srand($seed);
      $item = rand(0,9);
      echo $item;
      ?&gt;
  </code></pre>
  
  <p>But the value of $item is not changing in 5 minute. How can I edit this code?</p>