def _select_samples(self, candidate, number_samples):
        """
        obtain random integers from range(self.num_population_members),
        without replacement.  You can't have the original candidate either.
        """
        idxs = list(range(self.num_population_members))
        idxs.remove(candidate)
        self.random_number_generator.shuffle(idxs)
        idxs = idxs[:number_samples]
        return idxs

        obtain random integers from range(self.num_population_members),
        without replacement.  You can't have the original candidate either.
        
art/attacks/evasion/pixel_threshold.py