oTree Forum >

Quiz - Randomization by topic

#1 by manuela


I have been working with your quiz template. I want to modify it but struggle with the implementation.

Here is what I want: Have a csv file with quizzes of 3 topics (say history, tech, math) and 10 questions per quiz. The order should be randomized at the topic level and at the quiz level for every participant. That is, every participant will solve the quizzes in a different order and for each quiz, they will solve the questions in randomized order.

Here is what I struggle with: I am unable to randomize the quizzes at the topic level and then within each topic at the question level. Do you know how I can accomplish that with a list of dictionaries?

I have attached the quiz template and a csv example (for now with 2 topics).

Thank you,

Write a reply

Set forum username