def __init__(self, params, offset=0):
        agents.Agent.__init__(self, params, offset)
        try:
            self.maxprice = self.args[0]
        except (AttributeError, IndexError):
            raise MissingParameter, 'maxprice'
        try:
            self.maxbuy = self.args[1]
        except IndexError:
            raise MissingParameter, 'maxbuy'
        del self.args
        self.buyprice = random.randint(1, int(self.maxprice*50))/100.
        self.sellprice = random.randint(int(self.maxprice*50), \
                                        self.maxprice*100)/100.
dataset/ETHPy150Open jcbagneris/fms/fms/contrib/coleman/agents/randomfixedtraderhalves.py/RandomFixedTraderHalves.__init__/original