Hmm other idea for a randomize case is prob make your data structure change
example. so you have an image table called “pattern” where you put countless of image (single item sadly)
And then on the current table you working on just assign a relation table into the “pattern” for answer is a single item and for the option just “list of pattern”
Now to check for the anwer if it’s correct you just filtered it out maybe use count after that if it’s return 0 then it’s incorrect return 1 it’s correct
Rough idea: