# Help: need to random position mc's without overlapping

**URL:** <https://forum.kirupa.com/t/help-need-to-random-position-mcs-without-overlapping/307552>\
**Category:** Uncategorized\
**Created:** [April 5, 2010, 10:07pm UTC](https://forum.kirupa.com/t/help-need-to-random-position-mcs-without-overlapping/307552 "2010-04-05T22:07:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilfz](https://avatars.discourse-cdn.com/v4/letter/i/e79b87/32.png) [@ilfz](https://forum.kirupa.com/u/ilfz)\
**Post date:** [April 5, 2010, 10:07pm UTC](https://forum.kirupa.com/t/help-need-to-random-position-mcs-without-overlapping/307552/1 "2010-04-05T22:07:55Z")

</div>

Tried searching for this every where but no luck.  
Can someone please tell me how do can I position around 50 dynamic create movieclips from the library on the stage without overlapping.

I did the random x and y but they end up overlapping, i assume i have to do it with the hitTestObject, but eventually i will have 7 layers with 50mc’s on each stage that need to be positioned randomly without overlapping and it will become processor heavy to test these objects.

Anyone have any suggestions? Maybe a grid or something?

Thanks
