MCPcopy Create free account
hub / github.com/Semporia/Scripts / randomString

Function randomString

jd_summer_movement.js:173–179  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

171 }
172})().catch((e) => {$.log('', `❌ ${$.name}, 失败! 原因: ${e}!`, '')}).finally(() => {$.done();})
173function randomString(e) {
174 e = e || 32;
175 let t = "abcdefhijkmnprstwxyz2345678", a = t.length, n = "";
176 for (i = 0; i < e; i++)
177 n += t.charAt(Math.floor(Math.random() * a));
178 return n
179}
180
181async function main(){
182 $.homeData = {};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected