Generating Unique Ticket Numbers For Each Item Purchased


I’m looking for help to know how/if it’s possible to generate unique ticket number and assign it to and item that is purchased.

I have a client that is wanting to run a trade promotion through their website and needs to generate unique entry numbers with each ticket sold.

I appreciate any help on this.