Help with randomizing routine

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 2020.2.10
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?: randomizing routine

What did you try to make it work?: i dont have a clue how to start

I am planning on creating a series of experiments on mTurk.
Each participant is suppose to enter the experiment at least 3 times but each time they enter they will get a different preparation task (routines) and a least one time they will not get any preparation at all (my control experiment) .

I want to create a function that makes random classification of which preparation they will or will not get
but i have no clue how to start. any help will be appreciated.

This should give you some ideas :slight_smile: Blocks of trials and counterbalancing — PsychoPy v2020.2