Repeatedly randomize a column based on conditions
I have 9 tests with 4 levels. My aim is to shuffle both test and level orders, making sure that each sequence of 9 tests only contains once each test. And I want to repeat this several times (let’s say 14 times for instance).