예제 #1
0
파일: models.py 프로젝트: chase-ok/StatMech
 def _doTransferWealth(self,fromAgent,toAgent):
     stock = random.choice(self.stocks)
     price = self.currentPrices[stock]
     agents.transferStock(fromAgent,toAgent,stock,price,amount=1)
예제 #2
0
파일: models.py 프로젝트: chase-ok/StatMech
 def transaction():
     return agents.transferStock(fromAgent, toAgent, stock, price)