# Randomly place mc on stage EXCEPT for one area?

**URL:** <https://forum.kirupa.com/t/randomly-place-mc-on-stage-except-for-one-area/192962>\
**Category:** flash\
**Created:** [July 3, 2006, 6:41am UTC](https://forum.kirupa.com/t/randomly-place-mc-on-stage-except-for-one-area/192962 "2006-07-03T06:41:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 3, 2006, 6:41am UTC](https://forum.kirupa.com/t/randomly-place-mc-on-stage-except-for-one-area/192962/1 "2006-07-03T06:41:25Z")

</div>

Hey guys

I was wondering if this is possible… I want to load some mcs randomly on the stage, except for a footer area at the bottom of the stage. Is there a way to exclude just a certain part of the stage using something like Math.random()\*Stage and then specifying the bottom 300 pixels as off limits?

I’m using the whole stage because the swf is embedded 100% across the browser, so I can’t restrict the dimensions.

```auto

onClipEvent (load) {
	x = this._x=Math.random()*Stage.width;
	y = this._y=Math.random()*Stage.height;
}

```
