# What is this? (rotate problem)

**URL:** <https://forum.kirupa.com/t/what-is-this-rotate-problem/41737>\
**Category:** Uncategorized\
**Created:** [February 1, 2004, 12:20pm UTC](https://forum.kirupa.com/t/what-is-this-rotate-problem/41737 "2004-02-01T12:20:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sWo0p](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sWo0p](https://forum.kirupa.com/u/sWo0p)\
**Post date:** [February 1, 2004, 12:20pm UTC](https://forum.kirupa.com/t/what-is-this-rotate-problem/41737/1 "2004-02-01T12:20:42Z")

</div>

hi fellas,

i created a simple little random genorate function that shffules trough 10 numbers… it works but the trouble is if i rotate it it does’nt work anymore why is that and how do fix this?

```php

onClipEvent (enterFrame) {
	shuffle = Math.round(Math.random()*9);
}

```

this is de function…

please help?
