リダイレクトテスト


f_redirect();
function f_redirect(){
var arr = [
'https://blog.co-nect.co.jp/',
'https://blog.co-nect.co.jp/2022/08/20/corona-stretch/',
'https://blog.co-nect.co.jp/2022/08/18/corona-workout/'
];
var num = arr.length;
if (arr.length == 0) return false;

// 0 から (arr.length - 1) の乱数を取得
var num = Math.floor(Math.random() * arr.length);
location.href = arr[num];
}