I have a system that requires a unique 6-digit code to represent an object, and I\'m trying to think of a good algorithm for generating them. Here are the pre-reqs:
Don't reinvent the wheel: http://en.wikipedia.org/wiki/Universally_Unique_Identifier