How to assign participants uniformly across conditions with multiple sets of stimuli in a single experiment file?

I’ve now written an app to deal with non completions.

It can also assign participants randomly to any number of different groups (as opposed to having to use the participant number which would make the assignment consecutive).