When you want to pick more than 1 element in a list of n elements with no repetition, you should think of a permutations table. The "Advanced Random" plugin makes it very easy to implement such a thing.
If you have 6 matching pairs, you create a permutation table of length 6 starting at 0. It will create an array of values from 0 to 5 in a random order (basically, your indexes). You can then use AdvancedRandom.Permutation(0) to get the first random number, AdvancedRandom.Permutation(1) for the second, etc. assuring no repeating number.
You can then use these values to index either your dictionary or array, depending on what you ended using.
Thank you for suggesting the Advanced Random plugin, I think it makes the overall randomisation of the height easier to do without mismatching the data.
However, because I'm painfully new to this, I'm having difficulty wondering where to put the AdvancedRandom.Permutation(0).
Like, should I add it as a function? I changed it to an array since I wanted to try the overall amount of data I have with it. I think I've already linked the Permutation with associated array.
> thank you for the reply!
> I remember trying to do this method but I couldn't get the code on how to generate the matching row for the other value, if that makes sense.
> In other words, I could pick a random value from the meaning part but I didn't know how to get the matching word part, if that makes sense.
If all of the questions are at X,1 and all of the answers are at X,2, then all you need is X. So if x is 6 then the question is at 6,1 of the array and the answer is at 6,2. So the question is randomnum,1 and the matching answer is randomnum,2 every time.
Thank you for this! I think this gave me a fair idea of how I should be approaching it overall. :)