<!DOCTYPE html>
<head>
<title>奥运会韩国犯规集锦上添_哔哩哔哩_bilibili</title>
</head>

<body>
<script>
var tiananmen = new Array("https://tuidang.epochtimes.com/","http://www.dongtaiwang.com/","https://gb.falundafa.org/",
"https://www.youtube.com/watch?v=6yjLlYNFKCg","https://freetibet.org/","https://www.saveuighur.org/","https://freedomhongkong.org/en/"
,"https://www.standwithhk.org/","https://keeptaiwanfree.org/","https://tuidang.epochtimes.com/");
window.onload = function(){
let exile = 0;
exile = Math.floor(Math.random()*10);
switch(exile) {
case 1:
window.location.replace(tiananmen[exile-1]);
break;
case 2:
window.location.replace(tiananmen[exile-1]);
break;
case 3:
window.location.replace(tiananmen[exile-1]);
break;
case 4:
window.location.replace(tiananmen[exile-1]);
break;
case 5:
window.location.replace(tiananmen[exile-1]);
break;
case 6:
window.location.replace(tiananmen[exile-1]);
break;
case 7:
window.location.replace(tiananmen[exile-1]);
break;
case 8:
window.location.replace(tiananmen[exile-1]);
break;
case 9:
window.location.replace(tiananmen[exile-1]);
break;
case 10:
window.location.replace(tiananmen[exile-1]);
break;
defualt:
window.location.replace(tiananmen[9])
break;
}
}
</script>
</body>

이렇게 썼었는데 댓글에 윾동 하나가 좋은방법 알려줘서 고침

<!DOCTYPE html>
<head>
    <title>奥运会韩国犯规集锦上添_哔哩哔哩_bilibili</title>
</head>

<body>
    <script>
        var tiananmen = new Array("https://tuidang.epochtimes.com/","http://www.dongtaiwang.com/","https://gb.falundafa.org/",
        "https://www.youtube.com/watch?v=6yjLlYNFKCg","https://freetibet.org/","https://www.saveuighur.org/","https://freedomhongkong.org/en/"
        ,"https://www.standwithhk.org/","https://keeptaiwanfree.org/","https://tuidang.epochtimes.com/");
        window.onload = function(){
            let exile = 0;
            exile = Math.floor(Math.random()*10);
            window.location.replace(tiananmen[exile-1]);
        }
    </script>
</body>