oTree Forum >

Randomization issue

#1 by Suganthi

Hello everyone,
I have been facing issues with randomization of question order. Sometimes, the randomization works correctly, and the other times it skips the "Round1” explicitly and starts with “Round2” directly when I try to refresh the link or compile. I have used PyCharm to debug, and the code seems to be normal and nothing strange. Could you help with it?

Otree version = 5.11.0b2

Attached are the screenshots,

Thanks.

#2 by Chris_oTree

Can you show your code?

#3 by Suganthi

Hello Chris,

Thanks for your reply. Please find the attachment.

Kind regards,
Suganthi

#4 by Chris_oTree

my_function should not be inside is_displayed because then it is run an unpredictable number of times.

Write a reply

Set forum username