Javascript Array rand()

Description

Javascript Array rand()


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



PreviousNext

Related