hi guys
i just want to know if any one has a solution for my problem??
i need it as soon as possible .
thanks
I'm sure there is a solution, but are you just writing a program to simulate this, or are you trying to interface it with some sort of real-time database, have an actual production solution?
If you're just writing the program, it's as easy as creating a random number generator within 3 digits, making sure it hasn't been created yet, and storing it in some sort of hash table or list.
If this is for a production environment, it's more complicated in the db/device connections, but theoretically the same idea - the only problem will be having the devices themselves accept this number, figuring out how to send the devices the serial (the format)...