How to generate ticket as product?

I want to generate a series of ticket numbers where the admin will put starting number and number of tickets, and then the system will generate that series as products so that user can buy those from the site. Let the starting number be 600000 and number of ticket be 100000. That means it will create 100000 products. So how to do that? Can anyone please help me with that?

Is there more to this than just the ticket number?

If not, then I wouldn’t generate individual instances for every number. I’d assign a range to a customer, and manage that set as a range.

But it really depends upon what you’re needing to track per ticket number.

That means there is no need of generating ticket numbers. Simply I can set a range and let user buy tickets from that range.
Thank you for your advice.