from otree.api import Currency as c, currency_range, expect, Bot from . import * import random, math class PlayerBot(Bot): def play_round(self): age = random.randint(13, 100) gender = random.choice(['Male', 'Female', 'Prefer not to say']) degree = random.choice(['Bachelor', 'Master', 'PhD', 'Other']) admin = random.choice(['Science', 'Economics', 'Finance', 'Management and Business Administration', 'Other']) risk = random.randint(0, 10) compete = random.randint(0, 10) satisfaction=random.randint(0, 10) yield P01_Demographics, dict(age=age, gender=gender, degree=degree, admin=admin) yield P02_Additional, dict(risk=risk, compete=compete, satisfaction=satisfaction)