Check out example codes for "python shuffle two lists together". It will help you in understanding the concepts better.

Code Example 1

from sklearn.utils import shuffle
a_shuffled, b_shuffled = shuffle(np.array(a), np.array(b))

Learn ReactJs, React Native from akashmittal.com