I am creating a ticket system for learning purposes, and I was wondering how would I create a simple unique ticket ID that would be similiar to this: gD8f-jxS
It would have 4 characters of random case in the first part
(letters and numbers are allowed, then it would have a dash, and again 3 random letters or numbers of any case.