I have an array of book titles, and another with corresponding book authors. Let's just assume I need them in separate arrays as opposed to the same dictionary. How can I reorder the indexes of both arrays, while making sure the index of array 2 still corresponds to the index of array 1?
//This is what I currently have:
var arrayOne = ["one", "two", "three", "four"]
var arrayTwo = [1, 2, 3, 4]
//The new indexes should be random, non-repeating integers
arrayOne = ["four", "two", "three", "one"]
arrayTwo = [4, 2, 3, 1]