from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) import random author = 'Your name here' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'sotsuron_2' players_per_group = 5 num_rounds = 1 class Subsession(BaseSubsession): #def creating_session(self): # self.group_randomly() # print(self.get_group_matrix()) pass class Group(BaseGroup): real_value = models.CurrencyField(initial=random.randint(25,225)*100) e = models.CurrencyField(initial=random.randint(5,10)*100) min_value = models.CurrencyField() class Player(BasePlayer): look_value = models.CurrencyField() bid = models.CurrencyField()