I recently read a StackOverflow post about a CS(P)RNG generating sixteen bytes of random data. The OP wanted this data to be random and unique. One of the answers said that uniqueness and randomness are mutually exclusive when talking about a CS(P)RNG. I commented on that matter with the following example:
The list
[1, 2, 3, 4, 5]
is unique, but we can hardly call it random. Additionally, given a theoretical random source, we could generate a list of[1, 81, 44, 1, 9, 2]
. This might be random, but is not unique.
I concluded that therefor randomness and uniqueness are not mutually exclusive. I was commented on that I was likely correct for random number generators, but that the CS(P)RNG does exclude randomness, but I can't find it does anywhere.
I do understand that the uniqueness and randomness of course have to deal with the amount of generated data (in this sceneario sixteen bytes) and the generated set. But my question is more related to the terminology or definition of the CS(P)RNG. So, is the output of a CS(P)RNG unique?
[1, 2, 3, 4, 5]
is not random? Can you prove it? $\endgroup$[1, 2, 3, 4, 5]
could be said to be just as "random" as[1, 81, 44, 1, 9, 2]
(although one has 5 elements and the other 6, I suppose that's an error on your side). $\endgroup$[1, 2, 3, 4, 5]
fail on the randomness test and therefor not be a PRNG? And yes, the sets are different in length, it was merely a demonstration set. You could also assume the first set would be[1, 2, 3, 4, 5, 6]
$\endgroup$