PennController for IBEX › Forums › FAQ / Tips › Randomly Shuffle Positions of Elements › Reply To: Randomly Shuffle Positions of Elements
Dear Jeremy,
This trick worked very well for me until recently and now suddenly doesn’t – the only change being that I’m no longer using the PCIbex Farm, I have to run the experiment on a locally hosted IbexFarm server by syncing the git repo to obey local data protection laws.
Here’s the code for the relevant segment of a trial:
newTrial("practice", defaultText .center() .print(), newText("info","<p><i>This is a trial round.</i></p>"), newSelector("texts"), newText("premise1", "The girl is holding an ice-cream.") .selector("texts"), newText("premise2", "The boy is holding a cupcake.") .selector("texts"), newText("premise3", "The baby is holding an ice-cream and a cupcake.") .selector("texts"), getSelector("texts") .shuffle() .disable(), newButton("next", "NEXT"), newCanvas("next1", 250, 250) .add(300, 64.5, getButton("next")) .print(), getButton('next') .log() .wait() );
The same code runs on IbexFarm but no longer shuffles the elements. I’ve tried different formats like adding items to the selector using .add() instead, using .disableClicks(), ordering differently, etc. but it makes no difference and I can’t tell what I’m doing wrong. Might it have something to do with the PennController syncing to where I’m running the experiment?
Thank you for your input!