/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var rand:Number = Math.random(); var max:Number = 10; var randInRange:Number = Math.round(rand * max); trace(randInRange);