A lot of times I just use random values to give objects unique identifiers. Statistically it's very unlikely to cause problems but I'd be a bad programer if I didn't have a failsafe to check for duplicates. It's amusing that I'm more likely to win the lotto than have this code be needed.
- 1 person likes this.