Hope you are doing well. I am trying to insert a random number generator at the end of my experiment to be used as a Participant ID. Ideally, this number would be randomly generated and then presented to participants on a screen at the end of the trial, as well as recorded in the result file in each line of the experiment. However, I am unsure if I can retroactively add an ID line in each result file line, and I am also unsure how to embed a random number generator.
Sorry for the late reply, I was away from the office last week. What you can do is generate the random number at the beginning of the experiment, but present it only at the end. Here’s a dummy experiment for illustration purposes: