# setInterval question

**URL:** <https://forum.kirupa.com/t/setinterval-question/252047>\
**Category:** Uncategorized\
**Created:** [February 15, 2008, 9:46am UTC](https://forum.kirupa.com/t/setinterval-question/252047 "2008-02-15T09:46:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackjersey](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@blackjersey](https://forum.kirupa.com/u/blackjersey)\
**Post date:** [February 15, 2008, 9:46am UTC](https://forum.kirupa.com/t/setinterval-question/252047/1 "2008-02-15T09:46:55Z")

</div>

Ahoy hoy!

I have drawn a circle with rays on the stage and made it a movie clip in Flash MX. I can make the MC rotate by creating a function. However, when I call the function in a setInterval, I want the MC to rotate with random speed. I did it this way but to no avail:

setInterval(rotateme, random(2000));

I want the MC rotation to randomly speed up down to zero and slow down to 2000.

Any ideas?
