# \[FMX2004\] i cant figure out this random stuff

**URL:** <https://forum.kirupa.com/t/fmx2004-i-cant-figure-out-this-random-stuff/106803>\
**Category:** Uncategorized\
**Created:** [April 8, 2004, 11:04pm UTC](https://forum.kirupa.com/t/fmx2004-i-cant-figure-out-this-random-stuff/106803 "2004-04-08T23:04:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andizzle](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@andizzle](https://forum.kirupa.com/u/andizzle)\
**Post date:** [April 8, 2004, 11:04pm UTC](https://forum.kirupa.com/t/fmx2004-i-cant-figure-out-this-random-stuff/106803/1 "2004-04-08T23:04:29Z")

</div>

Hey everyone! :party:

I was looking at the random number tutorial here, ([http://www.kirupa.com/developer/actionscript/tricks/random.htm](http://www.kirupa.com/developer/actionscript/tricks/random.htm)) and I figured I’d do a test. So I opened up Flash, and made 3 movie clips. on the first frame I put this:

var dunno = Math.floor(Math.random()\*(4-1))+1;  
if (\_var.dunno=1) {  
this.a.\_x = 200;  
this.a.\_y = 200;  
} else if (\_var.dunno=2) {  
this.b.\_x = 200;  
this.b.\_y = 200;  
} else if (\_var.dunno=3) {  
this.c.\_x = 200;  
this.c.\_y = 200;  
}

I tested it out a bunch of times, but It just shows all of the movieclips on top of eachother. I tried so many things but I just can’t figure it out.

Can someone please help me?
