Вариант
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<script>
function d(b) {
for (var a = b.length - 1; 0 < a; a--) {
var c = Math.floor(Math.random() * (a + 1)),
d = b[c];b[c] = b[a];b[a] = d }
return b}
var country = 4, clubs = 8, arr = [], rundCountry = [];
for (var i=0; i<country; i++) {
rundCountry[i] = [i];
var c = arr[i] = [];
for (var k=0; k<clubs; k++) {
c[k] = k
}
}
var n = 0;
for (var i=0; i < clubs; i++) {
rundCountry = d(rundCountry);
for (var k=0; k<country; k++) {
var a = rundCountry[k];
var c = Math.floor(Math.random() * (arr[a].length));
c = arr[a].splice(c,1);
!(k % 2) && document.write(++n +" игра (страна-клуб этой страны) <br>");
document.write(a+"-"+c+"<br>");
}
}
</script>
</body>
</html>