I am interested in using rand() to generate customer order numbers between a certain range.
For example between
79000000 - 79999999
What are the chances of the rand() generating the same number twice, at the same time, heaps of people place an order into our system.
I am planning to check the orders table with the generated rand() before inserting the order number into the system.
I have never used rand() before, so i'm just checking, cause otherwise I would just do 79000001, 79000002, etc for order numbers.
However I didn't want customers to be thinkin they were only order 1, or 2, etc.