Randomising stimuli for each participant without breaking constraints

Have a look at my Complex Randomisation and Randomisation without repetition online demos. Trial switching might help too.