Shuffle Image Function
<p>I am tryin to shuffle images around in a table , I have this piece of code which worked when the images were not in a table, I want it to work when they are in the table -</p>

<pre><code>    var a = $("#deck &gt; div").remove().toArray();
for (var i = a.length - 1; i &gt;= 1; i--) {
    var j = Math.floor(Math.random() * (i + 1));
    var bi = a[i];
    var bj = a[j];
    a[i] = bj;
    a[j] = bi;
}
$("#deck").append(a);
</code></pre>

<p>and this is the code - <a href="http://jsfiddle.net/kommandoss/YuRpU/39/" rel="nofollow">http://jsfiddle.net/kommandoss/YuRpU/39/</a></p>

<p>any help appreciated, thanks</p>
