Description of the problem: The old/new items are not randomized in the requested order. I am trying to program an anchoring-experiment. The old/new items should appear in a pseudo-randomized order. The pseudo-randomization works offline, but not online. Online always the same sequence is being used. I am using this code-element to shuffle the items in the order I want.
I think that we have identified the problem. If we change the line trialList: TrialHandler.importConditions(psychoJS.serverManager, (AbrufListe + ".xlsx"), index),
to trialList: TrialHandler.importConditions(psychoJS.serverManager, (AbrufListe + ".xlsx"), index.toString()),
the randomization works.
At the moment, we do this by hand in the JavaScript code stored online. Suggestions are welcome on how to code this properly in the JavaScript part in Builder. Simply making the index to a string index did not work.
Dear @JensBoelte, alright thanks for the update. Without getting too technical, TrialHandler.importConditions() is open to having a selection argument independent of type. Whether you feed in the index array as is or converted to a string like you describe should make no difference. I believe there is more to the issue. Please consider my reponse on GitHub for details. Cheers, x