Utility function to shuffle Array in ActionScript