export const randomString = ( n: number, possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', ): string => { let text = ''; for (let i = 0; i < n; i += 1) { text += possible.charAt(Math.floor(Math.random() * possible.length)); } return text; };