php maximum values to show in a list in random order?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2118842/output-array-elements-randomly-with-php">Output array elements randomly with PHP</a>  </p>
</blockquote>



<p>Lets say we have this code:</p>

<pre><code>&lt;? if (isset($specialoffers)) { ?&gt;
    &lt;? foreach ($specialoffers as $value) { ?&gt;

      &lt;div&gt;product #&lt;/div&gt;

    &lt;?};?&gt;
&lt;?};?&gt;
</code></pre>

<p>For example this list may be different everytime, it may have 1 product, and it may have 58 products. I want do display only 10 products in the list and in a random order. </p>

<p>How to do that?</p>

<p>I would like not to touch the SQL query!</p>
