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