var randomNumber:uint = Math.round(Math.random()*(myArray.length-1)); txt_kvadrat.txt.text = myArray[randomNumber]; myArray.splice(randomNumber, 1);