Randomize stimuli, learning and verification, including learned and haven't learned before

OS (e.g. Win10): windows 10
PsychoPy version (e.g. 1.84.x): v3.2.4
**Standard Standalone? yes
**What are you trying to achieve? **
I want to let participants randomly learning 4 categories pics, each one contains 6 pics following with labels, I need to randomly present 4 pics in a row randomly. After learning, we got a routine is to verify all pics including the pics that haven’t learn before, how do I achieve the verification?
ps. we separate 6 times to study all the pics

What did you try to make it work?:
I try to fix a category of the pic, for example fixing a group which contain all the first pic in those cetegories, like p1 n1 nue1 x1, the second one is p2 n2 nue2 x2

What specifically went wrong when you tried that?:
It is actually not full random… I think it need to have p1 n1 nue1 x1, then p1 n1 nue x2 until 6, so total got 1296 combinations, which means so many verification condition files are needed.

hoping someone can help me, or else I will drown in the conditions files /(ㄒoㄒ)/~~