package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var nRandomInteger:Number = Math.floor(Math.random()*10); trace(nRandomInteger); nRandomInteger = Math.floor(Math.random()*10) + 1; trace(nRandomInteger); } } }