# Random between 550 and 300

**URL:** https://forum.kirupa.com/t/random-between-550-and-300/60329
**Category:** Uncategorized
**Created:** [August 9, 2004, 2:46am UTC](https://forum.kirupa.com/t/random-between-550-and-300/60329 "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/60329/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: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 9, 2004, 3:20am UTC](https://forum.kirupa.com/t/random-between-550-and-300/60329/2 "2004-08-09T03:20:05Z")

</div>

```auto

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

```

where 200 is the range and 300 is the starting index
