Problem has been solved
What I need is if I declare n as 4. I need 4 unique coordinates and push them to array, here is my code that can produce duplicates:
function entriesToDel(n) {
var array = [];
for (let i = 0; i < array.length; i++) {
var row = Math.round(3*Math.random());
var col = Math.round(3*Math.random());
var output = [row,col];
array.push(output);
}
return array;
}