+1 (218) 451-4151
glass
pen
clip
papers
heaphones

Write a method, shuffle(A), that rearranges the elements of array A so that every possible…

Write a method, shuffle(A), that rearranges the elements of array A so that every possible…

Write a method, shuffle(A), that rearranges the elements of array A so that every possible ordering is equally likely. You may rely on the nextInt(n) method of the java.util.Random class, which returns a random number between 0 and n−1 inclusive.