You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am trying to use the jsPsych.randomization.shuffleNoRepeats plugin to create a random sequence of 12 trials with no repeats. However, I am getting an error ('Second argument to jsPsych.randomization.shuffleNoRepeats() must be a function.') whenever I try to use it as suggested on the JSPsych page. I get the same error when I try adding 'function(a,b) { return a.stimulus === b.stimulus}' as the second argument.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am trying to use the jsPsych.randomization.shuffleNoRepeats plugin to create a random sequence of 12 trials with no repeats. However, I am getting an error ('Second argument to jsPsych.randomization.shuffleNoRepeats() must be a function.') whenever I try to use it as suggested on the JSPsych page. I get the same error when I try adding 'function(a,b) { return a.stimulus === b.stimulus}' as the second argument.
Any help would be greatly appreciated! Thanks in advance!
shufflednorepeats_test.txt
Beta Was this translation helpful? Give feedback.
All reactions