Jittering fixation durations #829
-
Hi, I'm wondering if there is a way to jitter fixation durations randomly. Best, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you can do this using a function for the fixation's duration parameter. There's one example here: https://www.jspsych.org/tutorials/rt-task/#part-7-using-functions-to-generate-parameters And here's another example for writing a function that will randomize between 2 and 4 seconds: var fixation = {
...
trial_duration: function() {
var rand_iti = Math.floor(Math.random() * (4000 - 2000)) + 2000;
return rand_iti;
} |
Beta Was this translation helpful? Give feedback.
Yes, you can do this using a function for the fixation's duration parameter. There's one example here: https://www.jspsych.org/tutorials/rt-task/#part-7-using-functions-to-generate-parameters
And here's another example for writing a function that will randomize between 2 and 4 seconds: