Change the way generating the ticketNumber