Create unique random numbers using srand and rand function(php)?
<p>This code creates a new random number each second. </p>

<pre><code>   srand(floor(time() / (1)));
   echo rand(0,5);
</code></pre>

<p>How can it echo random numbers (0-5) uniquely, and then cycle? </p>

<p>For example, I'd love to get a sequence like this:</p>

<pre><code>1,5,4,3,2,1,4,5,3,2,5,4,1,2,3...
</code></pre>

<p>Rather than this:</p>

<pre><code>2,2,1,4,3,4,5,5,5,5,5,1,2,3,4...
</code></pre>

<p>(Just to clarify, the second gap is important, and you're to assume there's been a one second delay between each page load. Each page load results in a random number)</p>
