def _respawn(self):
        """
        Pick a random location for the star making sure it does
        not overwrite an existing piece of text.
        """
        self._cycle = randint(0, len(self._star_chars))
        (height, width) = self._screen.dimensions
        while True:
            self._x = randint(0, width - 1)
            self._y = randint(0, 1 - height)
            if self._screen.get_from(self._x, self._y)[0] == 32:
                break
        self._old_char = " "
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/effects.py/_Star._respawn/swapped operands of `-`