jQuery/JS random image positioning using Math.random() and .css?
<p>I'm new to programming. Right now I'm using jQuery + jqueryrotate to rotate my images randomly so it looks like they are scattered. I managed to make them rotate randomly, but I am a little stuck on how to make the position random. I made all the images <code>position: absolute</code> in a <code>position: relative</code> div with class <code>.holder</code>. I know usually the css property using jquery should normally be <code>({"top": "4px"})</code> but I want it doesn't work when I wrap it around a toString function.</p>

<pre><code>$.each($('.holder img'), function (i, element) {
    $(element).rotate(Math.random() * -90 + Math.random() * 90);
    $(element).css({
        "top": Math.random() * 300;
    })
});
</code></pre>
