Generate random UUID v4 identifiers, one at a time or in bulk.
UUID v4 identifiers are generated from 122 random bits, so collisions are astronomically unlikely — the same guarantee databases and distributed systems rely on worldwide.
Using the browser's built-in crypto.randomUUID(), a cryptographically secure random number generator — not a weaker Math.random()-based fallback.