<script type="text/javascript">
function getRandomUrl(){
var arr = [];
var r = Math.random();
arr[0] = 'http://www.baidu.com';
arr[1] = 'http://www.google.com';
arr[2] = 'http://www.bing.com';
arr[3] = 'http://www.qq.com';
//这里可以以arr[4]、arr[5]......这样继续添加
return arr[Math.round(arr.length*r)];
}
setTimeout(function(){
location.href = getRandomUrl();
},1000);
</script>
