let x1 = 1;
let x2 = 2;
let x3 = 3;
let x4 = 4;
let x5 = 5;

let array = [x1, x2, x3, x4, x5];
let randomNumber = array[Math.floor(Math.random() * array.length)];


if(randomNumber === 1) {
  x1 = 0;
  console.log(1);
}else if(randomNumber === 2) {
  x2 = 0;
  console.log(2);
}else if(randomNumber === 3) {
  x3 = 0;
  console.log(3);
}else if(randomNumber === 4) {
  x4 = 0;
  console.log(4);
}else if(randomNumber === 5) {
  x5 = 0;
  console.log(5);
}