Place random positioned element into a document in vertical axes
<p>I have the following code</p>

<pre><code>function randomizer(start, end)
{
    return Math.floor((end - start) * Math.random()) + 1;
}

var top_pos = randomizer(1, $(document).height());

$('.element_selector').css('top', top_pos + 'px');
</code></pre>

<p>but the result is not what I realy expect from. The most of the times the element is places near to top (about 80% of the times).</p>

<p>Is there any better solution to place my random element in realy random position into vertical axes ?</p>
