javascript – Javascipt Nested While Loop Not Ending

I have a set of numbers and I would like to generate 5 different sets of 2 different numbers or positions.

Here are my codes but it seem like execute non-stop. Can anyone please help? Thank you in advance.

let numSet = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
let numPos = ();
let numPosTemp = ();
let r, j, k;

// generate 5 sets
while (numPos.length < 5) {

   // generate 2 diff num pos
   while (numPosTemp.length < 2) {
      r = Math.floor(Math.random() * 10);
      if (numPosTemp.indexOf(r) === -1) {
         numPosTemp.push(r);
      }
   }

   // check match any child array
   k = 0;
   for (j = 0; j < numPos.length; j++) {
      if (numPosTemp.every(function (element) {
         return numPos(j).includes(element);
      }) == true) {
      k++;
      }
   }

   // will only add into numPos if totally no match
   if (k == 0) {
      numPos.push(numPosTemp);
   }
}

if there is another way better or more efficient please do comment also.. thank you~!