Javascript Array getRand()
getRand()
Array.prototype.getRand = function () { var rand = Math.floor(Math.random() * (this.length - 0)) + 0; return this[rand]; }