Update 1:
This is part in search of a practical solution and more in part exploration.
Let me phrase the question another way: If you were to look at an item, and be told to give it a number, and to be sure that number was not used previously, with previously not necessarily meaning never, but not used in the last 1,000 to 2,000 occurrences, and to not look at any list to be sure the number wasn't used previously, other than date and time, what would you do? If there are literally one or two duplicates, that would be fine.
Update 2:
Assuming that in most cases the person has access to either the internet or Excel, I suppose I can always use a random number generator. I think I can do a number between 1 and 9,999, as I wouldn't want more than 4 digits. What I am curious about but am not sure how to calculate are the following: 1) Assuming I want only 1,000 numbers, what's the probability of me getting a duplicate number? 2) Assuming I want only 2,000 numbers, what's the probability of me getting a duplicate number?
ORIGINAL POST:
I'm labeling some items by numbers, and would like to quickly assign an identifier / numbers to those things, without having to always check a list to see if the number was already used previously.
One way of course to do so is to simply label those items with the current date and time, as there would never be a duplicate. I however don't want to do so, plus the labeling / hand writing takes too long, especially when I am labeling the items on multiple sides.
Idea 1:
One idea I have, but don't have the time to test it out in Excel is to add the numbers up for the current date and time. So, for example, for 11/22/19 and 7:41 a.m. I would do 11+22+19+7+41 and if it were p.m., I would simply use the 24 hour format, so 19, instead of 7.
1. However, will this method result in duplicates? If yes, when -- within hours, days, months, or years?
2. I don't fully like this method as it will take some time to constantly be adding up the numbers.
Idea 2:
What about adding up the left digit of the minutes to the hour and then writing the seconds? So, 7:47 25 seconds = 1125
How long before duplicates result though? Keep in mind this won't be occurring second by second and there may be anywhere from 30 seconds to perhaps 10 minutes before another label is assigned.
Other Ways?
What other ways are there to pick random, unique numbers?
Here is some additional info:
1. The numbers don't have to be in order. So, 1311, 999, 2005, 275, etc. is fine.
2. As for the limit / max, I suppose 1,000 numbers / identifiers should be more than good enough, but if not, definitely 2,000.
I look forward to the responses.
Thanks.
Bookmarks