package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var randomFloat:Number = Math.random() * 2; var nRandomFloat:Number = Math.random() * 45; trace(nRandomFloat); } } }