📅  最后修改于: 2022-03-11 15:01:51.701000             🧑  作者: Mango
//Create a function that returns a string, of a given length
const genRand = (len) => {
return Math.random().toString(36).substring(2,len+2);
}
console.log(genRand(8));
//Expected output example: 4yg020wn