in reply to Re^2: Check randomly generated numbers have not been used before
in thread Check randomly generated numbers have not been used before
Depends on what benefit of "seemingly random" you're looking for. Remember, these are part numbers, used in an inventory system, not part of any cryptographic system. They would function as database keys, so they had to be unique. It was desired that the numbers not be sequential, and that they would span the space. Probably to prevent anyone programming forms or reports from making assumptions about how many digits to allow for part numbers that would cause trouble at a later time. That was my guess at the time.
I put this together in 1993. My algorithm could still be in use to this day.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Check randomly generated numbers have not been used before
by BrowserUk (Patriarch) on Sep 16, 2016 at 20:48 UTC |