Randomly shuffle data and labels from different files in the same order
Generate a random order of elements with np.random.permutation
and simply index into the arrays data
and classes
with those -
idx = np.random.permutation(len(data))
x,y = data[idx], classes[idx]