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