Shuffle two list at once with same order
You can do it as:
import randoma = ['a', 'b', 'c']b = [1, 2, 3]c = list(zip(a, b))random.shuffle(c)a, b = zip(*c)print aprint b[OUTPUT]['a', 'c', 'b'][1, 3, 2]
Of course, this was an example with simpler lists, but the adaptation will be the same for your case.
Hope it helps. Good Luck.