code: def performAction(self, action):
          
          distrib = self.distrib[action[0], :]
          payoutIdx = eventGenerator(distrib)
  #        payoutIdx = drawIndex(distrib)
  
          self.lastPayout = self.payouts[action[0], payoutIdx]
  
          print "Payout [Arm: %d]: %.1f" % (action[0], self.lastPayout)
          print action
docs: perform an action on the world that changes it's internal state
          (maybe stochastically).
  
          All you have to do is pull one of the arm and receive a payout. Each
          arm has a distribution of different payouts that are delivered with
          different probabilities.