code: def getShocks(self):
          '''
          Determine which agents switch from employment to unemployment.  All unemployed agents remain
          unemployed until death.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          None
          '''
          employed = self.eStateNow == 1.0
          N = int(np.sum(employed))
          newly_unemployed = drawBernoulli(N,p=self.UnempPrb,seed=self.RNG.randint(0,2**31-1))
          self.eStateNow[employed] = 1.0 - newly_unemployef getShocks(self):
          '''
          Determine which agents switch from employment to unemployment.  All unemployed agents remain
          unemployed until death.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          None
          '''
          employed = self.eStateNow == 1.0
          N = int(np.sum(employed))
          newly_unemployed = drawBernoulli(N,p=self.UnempPrb,seed=self.RNG.randint(0,2**31-1))
          self.eStateNow[employed] = 1.0 - newly_unemployed
docs: Determine which agents switch from employment to unemployment.  All unemployed agents remain
          unemployed until death.
  
          Parameters
          ----------
          None
  
          Returns
          -------
          None