function randomFn() {
var activeRed = [];
var num1;
while (activeRed.length < 6) {
num1 = Math.floor(33 * Math.random() + 1);
if (num1 <= 9 && activeRed.indexOf("0" + num1) == -1) {
activeRed.push("0" + num1);
};
if (num1 > 9 && activeRed.indexOf("" + num1) == -1) {
activeRed.push("" + num1);
};
};
activeRed.sort();

var otherRed = [];
for (var i = 1; i <= 33; i++) {
  if (i <= 9 && activeRed.indexOf("0" + i) == -1) {
    otherRed.push("0" + i);
  };
  if (i > 9 && activeRed.indexOf("" + i) == -1) {
    otherRed.push("" + i);
  };
}

var num2 = Math.floor(16 * Math.random() + 1);
activeBlue = num2 > 9 ? "" + num2 : "0" + num2;
var otherBlue = [];
for (var i = 1; i <= 16; i++) {
  if ((i > 9 ? "" + i : "0" + i) != activeBlue) {
    otherBlue.push(i > 9 ? "" + i : "0" + i);
  }
}

var red = document.getElementsByClassName("balls-wp")[0].children;
var blue = document.getElementsByClassName("balls-wp")[1].children;

for (var m = 0; m < 33; m++) {
  if (m < 6) {
    red[m].innerText = activeRed[m];
    red[m].classList.add("active");
  } else {
    red[m].innerText = otherRed[m - 6];
  }
}

for (var n = 0; n < 16; n++) {
  if (n == 0) {
    blue[0].innerText = activeBlue;
    blue[0].classList.add("active");
  } else {
    blue[n].innerText = otherBlue[n - 1];
  }
}
return activeRed.join(",") + "|" + activeBlue;

}