Making divs constantly move randomly
<p>I have created a shooting game for children, where they have to shoot the correct number (depending on the question) when it appears. My problem is at the moment the numbers appear one at a time but I would like to make it so that the canvas is constantly populated with numbers that keep moving around like the shapes in this example... <a href="http://sheppardsoftware.com/mathgames/earlymath/shapes_shoot.htm" rel="nofollow">http://sheppardsoftware.com/mathgames/earlymath/shapes_shoot.htm</a></p>

<pre><code>function moveRandom(id) {

var cPos = $('#container').offset();
var cHeight = $('#container').height();
var cWidth = $('#container').width();

// get box padding (assume all padding have same value)
var pad = parseInt($('#container').css('padding-top').replace('px', ''));

// get movable box size
var bHeight = $('#' + id).height();
var bWidth = $('#' + id).width();

// set maximum position
maxY = cPos.top + cHeight - bHeight - pad;
maxX = cPos.left + cWidth - bWidth - pad;

// set minimum position
minY = cPos.top + pad;
minX = cPos.left + pad;

// set new position
newY = randomFromTo(minY, maxY);
newX = randomFromTo(minX, maxX);

$('#' + id).css({
    top: newY,
    left: newX
}).fadeIn(2000, function() {
    setTimeout(function() {
        $('#' + id).fadeOut('fast');
        window.cont++;
    }, 1500);
});
</code></pre>

<p>Here is the version I have created <a href="http://jsfiddle.net/pUwKb/5/" rel="nofollow">http://jsfiddle.net/pUwKb/5/</a></p>
