Trying to find an easy and clean way to find if any of 6 strings match the other 5.
I am building a table of data from a number of JSON files, and some of the data blocks are duplicated. Not everyone might have access to all JSON files, so some data goes in different files.
I generate 6 random numbers and use those data records. In each data block, I have a value that I don’t want to repeat. So in my 6 blocks that I will use, none should have that field match another. If it does, then I want to either try again, or throw out the repeat and get another.
Wanted to figure out how to do this as cleanly as possible.
Any suggestions for how to compare the 6 strings and ensure that I have 6 data blocks that each have that value as unique?