If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Mac Os Big Sur 11.6.1
PsychoPy version (e.g. 1.84.x): 2021.2.3
Standard Standalone? (y/n) If not then what?: Y
What are you trying to achieve?:
I want to randomly select a stimulus from a set of four in one routine (I know how to do that), and then use the same stimulus in the next routine (it is an image). I don’t know how to tell Psychopy that it has to take the randomly selected image from the previous routine. What code component do I have to type and what do I have to specify in the image component in the Builder?