from otree.api import * doc = """ Simple app that describe the vague contents and earnings structure at the beginning of the study. """ class C(BaseConstants): NAME_IN_URL = 'intro_worker' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): matrix_first = models.BooleanField() # FUNCTIONS def creating_session(subsession: Subsession): import random for player in subsession.get_players(): player.participant.matrix_first = random.choice([True, False]) player.matrix_first = player.participant.matrix_first # PAGES class OverviewWorker(Page): pass page_sequence = [OverviewWorker]