/ Published in: ActionScript

This will return a random number between two given numbers.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function getRandomNumber(minNum:Number,maxNum:Number):Number{ return(minNum+Math.floor(Math.random()*(maxNum+1-minNum))); };
Comments
