Aplique o mesmo shuffle a duas matrizes numpy
def unison_shuffled_copies(a, b):
assert len(a) == len(b)
p = numpy.random.permutation(len(a))
return a[p], b[p]
Beautiful Bat