asdg>> technotes>> how do i shuffle an array?

Below you'll find a function, shuffleArray(), that randomly reorders the elements of an array in place. shuffleArray() visits each element in theArray, and swaps it with a randomly chosen other element. Note that the function relies on another function, myRandom(), which generates a random integer in a specified range.