How to present subset of all images randomly

Thank you for your help, I have updated my comment. I apologize for any mistakes, I am very new to this!

Since playing around with the code a little bit more, I have got it to what I needed. Thank you for replying and for your help!

The last thing I need to figure out, is I have 8 trials and was wondering if there was any way to randomize the order that the trials go in.

I created my own thread a couple days ago but recieved no responses.

Thank you!