Random select of image stimuli without repeat in nested loop

Thank you! I can never solve this problem without your generous help!