How to generate Unique form ID


How do I generate a unique ID for submitted forms? I have plans on creating a ticket management system in SharePoint and need some ideas on how to generate one.

Dear @DryChips,
You can try this - javascript - How do I create a GUID / UUID? - Stack Overflow