Assignment of different conditions with random trials and blocks

Hi, Sorry if this question is asked before! I want to build an experiement in psychopy. I have 3 different conditions of 1 and 3 and 9 word list. I want to assign participants to one of these three condition and repeat the sequence of trials to see if they remember the a word from previous list or not. I have 10 trials per 4 blocks and each block also randomly assigned. My question is how can I randomly assign people to 1 or 3 or 9 rows of excel and each list randomly vary across 4 blocks, if I want each participant see each list once during the experiment.

To deal with the blocks question first, you will want an arrangement where you have two, nested, loops, one to control the trials and another to control the blocks, as in this guide:

https://www.psychopy.org/builder/blocksCounterbalance.html