Hi. I have a set of 7 strings – I’ll call them A,B,C,D,E,F,G. I want them in random order – e.g. F, C, E, A, G, B, D. Normally, this would be no problem – I’d just put these 7 strings in a column, then put random numbers in a second column, and sort on that second column.
The problem is that I want to do this 100 times, with each random shuffling of these seven strings on its own row. So, the rows might look like this:
Row 1: F | C | E | A | G | B | D
Row 2: C | G | A | F | D | B | E
Row 3: D | F | B | G | C | A | E
Row 4: (another permutation)
and so on down to Row 100.
The permutations should be random – which means it’s OK if there are duplicate rows.
The approach above would still work; but apart from having to swap columns for rows, there’s also having to do it 100 times, which seems crazy.
Is there a straightforward way to take a set of N items, and generate M random permutations of those N items, each on its own row?
I did a quick google and search of the forum here; but the responses I found generally referred back to the simple random arrangement approach above, which doesn’t seem practical in this case.
Thanks for any help!