var _arr1:Array=[]; var _arr2:Array=[]; t1.text=""; for(var i:uint=1;i<=33;i++){ _arr1.push(i); t1.text=t1.text+" "+_arr1[i-1]; } function refurbish(_e:MouseEvent=null):void{ _arr2=_arr1.slice(); t2.text=""; for(var i:uint=1;i<=6;i++){ var n:uint=Math.floor(Math.random()*_arr2.length); t2.text=t2.text+" "+_arr2[n]; _arr2.splice(n,1); } } refurbish(); re_btn.addEventListener(MouseEvent.MOUSE_DOWN,refurbish);