<script> var links = [ 'http://yandex.ru', 'http://google.ru', 'http://javascript.ru', 'http://spb-piksel.ru', 'http://mail.ru' ]; document.location = links[ Math.floor( Math.random() * links.length ) ]; </script>