PennController for IBEX › Forums › Support › Comprehension question and rshuffle in self-paced reading › Reply To: Comprehension question and rshuffle in self-paced reading
February 21, 2023 at 1:38 am
#9943
Participant
Hi Jeremy,
It’s been a year since I last posted under this thread. I have tried randomizing the answer choices following what you suggested:
Template("file.csv", row =>
newTrial("experimental-trial",
newController("DashedSentence",{s: row.Sentence})
.cssContainer({"margin-top":"2em", "margin-bottom":"2em"})
.print()
.center()
.log()
.wait()
.remove()
,
newText("CompQuestion", row.Question)
.center()
.print()
,
newVar("isCorrect").global()
,
newScale("answer",...[row.Answer1,row.Answer2].sort(v=>0.5-Math.random()))
.labelsPosition("right")
.center()
.log()
.print()
.wait()
.test.selected( row.Answer1 )
.success( getVar("isCorrect").set(true) )
.failure( getVar("isCorrect").set(false) )
)
.log("isCorrect", getVar("isCorrect"))
.log("group", row.Group)
.log("item", row.Item)
.log("itemID", row.Item_ID)
.log("condition", row.Condition)
)
But the presentation order of the answer choices is still fixed. Answer1 always appears before Answer2. Is there something I am missing?
Best,
Jun