private function execute(n:int, m:int):void { var res:Array = []; for (var i:int = 0; i < m;) { var r:int = Math.floor(Math.random() * n); if (res.indexOf(r) >= 0) continue; i++; res.push(r); } Alert.show(res.toString()); }