Javascript String rand()

Description

Javascript String rand()


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



PreviousNext

Related