(e: number, word?: number)
| 146 | } |
| 147 | |
| 148 | function 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 | |
| 156 | function o2s(msg: object | string, title: string = '') { |
| 157 | title && console.log('⬇️', title, '⬇️') |