from otree.api import * c = cu doc = '' class C(BaseConstants): NAME_IN_URL = 'Randomizer' PLAYERS_PER_GROUP = None NUM_ROUNDS = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): randomizer = models.IntegerField() class Intro(Page): form_model = 'player' @staticmethod def before_next_page(player: Player, timeout_happened): import random player.randomizer = random.randint(101, 700) class Redirection(Page): form_model = 'player' page_sequence = [Intro, Redirection]