const POSSIBLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; const POSSIBLE_LENGTH = POSSIBLE.length; export function randId() { let text = ""; for (let i = 0; i < 16; i++) { text += POSSIBLE.charAt(Math.floor(Math.random() * POSSIBLE_LENGTH)); } return text; }