apply same shuffle to two arrays numpy

Solutions on MaxInterview for apply same shuffle to two arrays numpy by the best coders in the world

showing results for - "apply same shuffle to two arrays numpy"
Fanny
30 Aug 2016
1def unison_shuffled_copies(a, b):
2    assert len(a) == len(b)
3    p = numpy.random.permutation(len(a))
4    return a[p], b[p]
5