in reply to Is there a better way to generate unique set of random numbers ?
A PRNG will basically never "exactly repeat," and a sufficiently long string made from one won't either. You could trap key-violations on SQL inserts to catch any cosmic rays.
"The way" to detect dupes in a large dataset is to disk-sort it.