I have array with multiple objects, for instance,
var arr = ["a", "b", "c", "d"];
What I want is to pick up 2 random objects from that array, for instance "a" and "c", and push the 2 objects into another array, for instance "arrCopy". Another thing is, I want to have a copy of the elements in the array "arrCopy", which are also shuffled. So, that array should look like:
arrCopy = ["c", "a", "a", "c"];
Last thing, how can I compare them if their content is the same? For instance:
arrCopy[1] == arrCopy[2];