Well, just because they use an alphanumeric identifier on the video does not mean that they simply generate these characters at random. Just because this line looks like random trash to you, I assure you that this is not an accident, and it contains a lot of information.
Such a quick answer: No, it is impossible to create a random sequence of letters, and then: a) hope that there will be no collisions, or b) check perhaps billions of entries to see if you have it.
It is much easier to keep the central “last identifier” and have an algorithm that moves from the “last identifier” to the “next identifier to use” in such a way as to mathematically guarantee the receipt of a previously unused identifier. In the case of consecutive identification numbers, this formula is simply f (n + 1) = f (n) +1 (for example, the last identifier was 150, the next was 151 .. guaranteed not to be used far), but you can develop your own formulas in accordance with your needs.
Radu094
source share