# Random Scenes =Urgent PLZ HELP=

**URL:** <https://forum.kirupa.com/t/random-scenes-urgent-plz-help/194761>\
**Category:** flash\
**Created:** [July 26, 2006, 3:17am UTC](https://forum.kirupa.com/t/random-scenes-urgent-plz-help/194761 "2006-07-26T03:17:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_James](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Jimmy\_James](https://forum.kirupa.com/u/Jimmy_James)\
**Post date:** [July 26, 2006, 3:17am UTC](https://forum.kirupa.com/t/random-scenes-urgent-plz-help/194761/1 "2006-07-26T03:17:08Z")

</div>

I have created a flash website and on there is 8 buttons, 7 of them go to their assigned scenes but i want the 8th button when you click on it to go to a random scene. I have found the action script so when u click on it, it picks 4 random numbers out of 11 but this doesnt help can anyone tell me what script i need to do so thanks  
here is the script i found if it helps:  
on (release) {  
function randRange(min:Number, max:Number):Number {  
var randomNum:Number = Math.floor(Math.random()\*(max-min+1))+min;  
return randomNum;  
}  
for (var i = 0; i\<100; i++) {  
var n:Number = randRange(4, 11);  
trace(n);  
}  
}

Thanks Jimmy
