def perturb(self, mutation_count):
        new_doe = self.doe.copy()
        n,k = self.doe.shape
        for count in range(mutation_count):
            col = randint(0, k-1)

            #choosing two distinct random points
            el1 = randint(0, n-1)
            el2 = randint(0, n-1)
            while el1==el2:
                el2 = randint(0, n-1)

            new_doe[el1, col] = self.doe[el2, col]
            new_doe[el2, col] = self.doe[el1, col]

        return LHC_indivudal(new_doe, self.q, self.p)
Interchanges pairs of randomly chosen elements within randomly chosen
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/doegenerators/optlh.py/LHC_indivudal.perturb