s4meone,
let randomIndex = Math.floor(Math.random() * cellNodeList.length);
let randomCell = cellNodeList.item(randomIndex);
cellNodeList.forEach(cell => cell.addEventListener('click', onClick));
function onClick() {
let clickedСell = this;
// ...
}