Generate a compact random ID from a URL-safe alphabet.
Cryptographically strong random bytes are mapped to the selected alphabet with rejection sampling, producing the requested length. The default alphabet avoids characters that need URL escaping.
Length: 21 Count: 1 Alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-
Bisas68L0xcyRld2iBRQj
Temporary client records, URL slugs, and public database keys generate Nano IDs.