Randomizing image without repeating in blocks?

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3
I design the experiment which consists of 40 images. The experiment will be repeated 4 times (outer loop) and each time 10 images will be shown randomly (inner loop )(4*10=40). I designed an inner loop and put 0:10 in the select row for the inner loop of the trial. I did the same way for the second part of the experiment. But in each repetition, only the first 10 images are randomly shown. What I want is that the images be selected randomly in each inner loop 10 times and the rest of the images be shown in the other repetition of the experiment. What can I do? Do you have any suggestions?
I attached the screenshots of my experiment. thanks.

Selecting rows 0:10 selects from the unrandomised rows.

I recommend just using your outer loop and then have a routine that only plays at intervals using a code component.

Thank you for your quick reply. I do know have any information about the code, can you explain it more? If I delete the inner loop, the whole experiment will be shown together. I mean I have two questions, the first part of the experiment asks question 1 for 10 images, then question 2 will be asked for 10 images again and this format will be presented 4 times. I do know how I explain it, I think the screenshots are clearer than my explanations. So how can I solve this problem?

Is the only difference a question in a text component?

If so I would add a loop counter in Begin Experiment (loopIdx=0) add one to it each loop (loopIdx+=1)

Then change the text component when loopIdx=10

text_1.text=‘new question ‘

Previously I would have used .thisN to count the loops but I’ve stopped using it because it has stopped working online

Thank you so much for your consideration. I want to work online, in the end, I might use pavlovia to do my experiment. Is there any other suggestion to run the experiment? Actually, I tried the solution you have mentioned and I receive this error " invalid syntax". I wrote the code you said in the code component at the beginning of the experiment in routin1. could you please advise me?

Please could you show a screenshot of your code component?

hi, thank you for your help.
I understand what you mean by asking the question " is the only difference a question in the text component". Actually, the rating is different. question 1 will be answered on the Likert of 1 to 4. question 2 will be answered in the range of 1 to 9 on the keyboard. I deleted the parentheses and the " invalid syntax" resolved. but the problem is this:
question1.text=‘new question‘
SyntaxError: invalid character in identifier.
I am really sorry I don’t have information about coding and this makes more problems. I searched the net I cant solv

e it.

question1 represents the text component where you tell the participant what to do. Is that in your q1 routine?

Both questions use number keys for response so that should be okay.

I define the q 1 text and it will be shown just once. after that the images will be shown and the question will be answered with the images (in one routine) together.