Use PHP to change the order of elements
<p>I have some markup like so:</p>

<pre><code>&lt;div class="list"&gt;

    &lt;article&gt; content... &lt;/article&gt;
    &lt;article&gt; content... &lt;/article&gt;
    &lt;article&gt; content... &lt;/article&gt;
    &lt;article&gt; content... &lt;/article&gt;
    &lt;article&gt; content... &lt;/article&gt;

&lt;/div&gt;
</code></pre>

<p>What I want to do is make the order of what these articles appears on the page random. What would be the best and easiest way to do this?</p>

<p>I thought about doing some sort of length count and storing it in an array and then spitting them back out again in a random order. e.g.</p>

<pre><code>$numbers = range(1, 20);
shuffle($numbers);
foreach ($numbers as $number) {
    echo "$number ";
}
</code></pre>

<p>Can anyone offer ideas etc? Thanks</p>

<p><strong>NOTE: These are not coming from a database!</strong></p>
