How to generate Unique Ticket Numbers?