// ⭐️ string.random()// ⭐️ Note: this may not work well with Unicode❗️ String.prototype.random=function(){returnthis[randomInt(this.length)];}// ⭐️ randomChar(str)// ⭐️ Note: this may not work well with Unicode❗️exportfunctionrandomChar(str) {return str[randomInt(0,str.length-1)];}