0

So I'm looking for a way to assign a set of numbers in a random way in a 2d array.

The array is {1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10}

How would I assign these values randomly in a 5 row and 4 column array?

Or is there a way to generate a random number for each location in the 2D array, but if I do this then there has to be the same random number in another location as well. So there has to be pairs of numbers generated.

Please and thank you.