<a href="#" onclick="window.location.href = 'https://' + Math.random().toString(36).substring(2) + '.你的域名.com'">点击随机跳转</a>
<script>
function randomRedirect() {
const randomPrefix = Math.random().toString(36).substring(2, 10); // 生成8位随机字母数字
window.location.href = `https://${randomPrefix}.替换成你的域名.com`;
}
</script>
<a href="javascript:randomRedirect()">点击随机跳转</a>
<a href="javascript:location.href='https://'+Math.random().toString(36).slice(2)+'.替换成你的域名.com'">随机跳转</a>