from otree.api import * c = cu doc = '' class C(BaseConstants): # built-in constants NAME_IN_URL = 'Consentimiento' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass class Consentimiento(Page): form_model = 'player' @staticmethod def before_next_page(player: Player, timeout_happened): participant = player.participant import random grupo=(1,2) grupo_audit=(1,2,3,4,5,6,7,8,9,10) participant.random= random.choice(grupo) participant.prob_audit=random.choice(grupo_audit) class Instrucciones(Page): form_model = 'player' page_sequence = [Consentimiento, Instrucciones]