Tracking food order in my chatbot

Hi Everyone,

Can anyone please tell me how to generate random order numbers for a food ordered by the user and simultaneously use that order number to send the tracking status to the user.

Thanks,
Kamran