How to clone an image and put them in random positions
<p>I am attaching an image to my page using create.js. And I want to clone it several times and put each one in random positions. I've used Jquery clone() method but there was no use from it.</p>

<pre><code>function handleComplete(e)
    var _obstacle = new createjs.Bitmap(queue.getResult("obstacle"));
    _obstacle.x= Math.floor((Math.random() * 799) + 1);
    _obstacle.y = Math.floor((Math.random() * 799) + 1);
    stage.addChild(_obstacle);
}

function tickHandler(e) {
    stage.update();
}
</code></pre>

<p>Thanks for attention!</p>