What is this? (rotate problem)

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?


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

this is de function…

please help?