def METHOD_NAME(self, current_index):
    """
    Selects an index uniformly at random from all chains excluding the
    index of the current chain.
    """
    free_chains = list(range(self._n_chains))
    free_chains.remove(current_index)
    other_index = np.random.choice(free_chains)
    return other_index