Javascript Array pickRandom()

Description

Javascript Array pickRandom()


Array.prototype.pickRandom = function(){
   return this[Math.floor(Math.random() * this.length)];
}



PreviousNext

Related