Returns a function that generates random alphanumeric IDs with an optional prefix.
Each generated ID is unique within the scope of the returned function.
Useful for creating unique HTML element IDs, form field IDs, or any scenario
where you need to generate multiple unique identifiers.
Note: This function is not suitable for generating IDs that require
high entropy or cryptographic security.
Returns a function that generates random alphanumeric IDs with an optional prefix. Each generated ID is unique within the scope of the returned function.
Useful for creating unique HTML element IDs, form field IDs, or any scenario where you need to generate multiple unique identifiers.
Note: This function is not suitable for generating IDs that require high entropy or cryptographic security.