array1 = [1,2,3];
array2 = ["one", "two", "three"];
array1 and array2 have a direct relationship between indexes.
Shuffled array1 - > array1 = [3,1,2];
How to make array2 have the same relation between the indexes after the shuffle of array1, to be as for example:
array2 = ["three", "one", "two"]?
array1 = [1,2,3];
array2 = ["um","dois","três"];
//Relação dos arrays entre os índices
document.write(array1);
document.write('<br />');
document.write(array2);
// embaralhou array1
array1 = [3,1,2];
document.write('<br /><br /><br />');
document.write(array1);
// Como ficar o array2 = ["três","um","dois"] a partir do embaralhamento do array1;