code: def activateRandomLocation(self):
      
      self.activePhases = np.array([np.random.random(2)])
      if self.anchoringMethod == "discrete":
        # Need to place the phase in the middle of a cell
        self.activePhases = np.floor(
          self.activePhases * self.cellDimensions)/self.cellDimensions
      self._computeActiveCells()
docs: Set the location to a random point.