# Random between 550 and 300

**URL:** https://forum.kirupa.com/t/random-between-550-and-300/118769
**Category:** Uncategorized
**Created:** [August 9, 2004, 2:46am UTC](https://forum.kirupa.com/t/random-between-550-and-300/118769 "2004-08-09T02:46:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![julpa](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@julpa](https://forum.kirupa.com/u/julpa)
#### Post date: [August 9, 2004, 2:46am UTC](https://forum.kirupa.com/t/random-between-550-and-300/118769/1 "2004-08-09T02:46:55Z")

</div>

ok quick question this has been killing me i cant find the answer anywhere.

anyways i want to make a movie clip load in a random spot between 300 and 500 on the x axis.

so how would i do that with this code

\_x = random(550)

i know its something with a “&”

---

<div class="post-metadata">

### Author: ![maximum\_flash](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@maximum\_flash](https://forum.kirupa.com/u/maximum_flash)
#### Post date: [August 9, 2004, 3:20am UTC](https://forum.kirupa.com/t/random-between-550-and-300/118769/2 "2004-08-09T03:20:05Z")

</div>

```auto

_x= (Math.random()*200) + 300;

```

where 200 is the range and 300 is the starting index
