忘れるのでメモ

function shuffleArray(myArray:Array){
	var i:Number = myArray.length;
	while(i){
		var randomNumber:Number = Math.floor(Math.random()*(i--));
		var temp:Object = myArray[i];
		myArray[i] = myArray[randomNumber];
		myArray[randomNumber] = temp;
	}
}