Javascript Array getRandomValue()

Description

Javascript Array getRandomValue()


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



PreviousNext

Related