How would I generate (and print individually) a list of unique column,row pairs in javascript? I have two variables set, a number of columns and a number of rows. I only want each pair to appear once, and it can't have 0s in it. Say I had 3 rows and 3 columns, I would want:
1,2 3,1 2,3 1,3 1,1 2,1 3,2 2,2 3,3
All in a random order. How would I do this?