Select a specific row of the csv file depending on the previous trial?

Have a look at my Randomisation without repetition online demo for a potential solution to this.