at85
New Member
Posts: 1
|
Post by at85 on Feb 28, 2023 23:46:21 GMT
Hi everyone, I would like my experiment to create a random ID for each participant so as to make the data anonymous. How could this be done in PsyToolkit? Would I have to write my own code to do this, or is this a built-in feature in PsyToolkit?
Thank you, and my apologies if this has been answered in another thread.
|
|
|
Post by isaidhi on Mar 3, 2023 16:33:46 GMT
I'm not sure if psytoolkit able to do that
|
|
|
Post by wooders on Mar 12, 2023 21:51:07 GMT
Near the bottom of the survey page there is a section, "Survey end screen and ending options," which has a check box to assign a random participant code.
|
|
andre
Experienced
Posts: 35
|
Post by andre on Apr 6, 2023 6:48:25 GMT
Have you tried the set command with the random option on the "options" level?
For example: options set &my_random_id random 0 10000
and then add &my_random_id to the save command in the trial
This is from the website: set This lets you set a global variable. This can be handy if you want to test an experimental parameter (e.g., intertrial interval) to a specific value throughout the experiment. If you do not use the variable anywhere, this set value will just be ignored.
Example of "set" in options options fullscreen set &my_intertrialinterval 100
task MyTask set $x random -300 300 # random x position set $y random -300 300 # random y position set $mysize random 10 100 show rectangle $x $y $mysize $mysize 255 0 0 # show red rectangle delay 100 clear -1 delay &my_intertrialinterval
block MyBlock tasklist MyTask 200 end
|
|