How to create a short customer ID

How to create a short customer ID

Just wondering how I would go about creating a shortened customer ID number....  I know Zoho creates a unique ID for each form entry, but I was hoping to create ones unique to my form, though only 5 digits or so and not the 18 automatically generated.

Thanks!