from otree.api import Currency as c, currency_range, expect, Bot from . import * import random class PlayerBot(Bot): def play_round(self): yield Submission(Demographics, dict(age=random.randint(18, 45), grades=random.randint(1, 6), study=random.randint(1, 6), gender=random.randint(1, 5), race=random.randint(1, 7), income=random.randint(1, 3), religious=random.randint(1, 4)), check_html=False) yield Submission(Risk, dict(risk=random.randint(1, 6)), check_html = False)