MCPcopy Create free account
hub / github.com/Toulu-debug/enen / randomString

Function randomString

TS_USER_AGENTS.ts:148–154  ·  view source on GitHub ↗
(e: number, word?: number)

Source from the content-addressed store, hash-verified

146}
147
148function randomString(e: number, word?: number) {
149 e = e || 32
150 let t = word === 26 ? "012345678abcdefghijklmnopqrstuvwxyz" : "0123456789abcdef", a = t.length, n = ""
151 for (let i = 0; i < e; i++)
152 n += t.charAt(Math.floor(Math.random() * a))
153 return n
154}
155
156function o2s(msg: object | string, title: string = '') {
157 title && console.log('⬇️', title, '⬇️')

Callers 1

jdpingouFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected