//pickRandom.js
/* global AdventureJS A */
/**
* Return a random item from an array of strings.
* @method AdventureJS#pickRandom
* @memberOf AdventureJS
* @param {String} string
* @returns {String}
*/
AdventureJS.FX.pickRandom = function AdventureJS_pickRandom(arr) {
if (!Array.isArray(arr)) return "";
return arr[Math.floor(Math.random() * arr.length)];
};