<html>
  <head>
    <script language="javascript">
    function GetRnd(min,max){       
          return parseInt(Math.random()*(max-min+1) + min);       
    }   
    window.location="http://www.abc.com/"+GetRnd(10393,10443);
    </script>
  </head>
  <body>
  </body>
</html>

解决方案 »

  1.   

    不是这样的,,,,最后输出的会是http://www.abc.com/数字.html
    你这样只会是http://www.abc.com/数字
      

  2.   

    <html>
      <head>
        <script language="javascript">
        function GetRnd(min,max){       
              return parseInt(Math.random()*(max-min+1) + min);       
        }   
        window.location="http://www.abc.com/"+GetRnd(10393,10443)+".html";
        </script>
      </head>
      <body>
      </body>
    </html>
      

  3.   

    你在后面加上一个不就行了?
    任选一个
    1、return parseInt(Math.random()*(max-min+1) + min) + ".html";
    2、window.location="http://www.abc.com/"+GetRnd(10393,10443)+".html";
      

  4.   

    <script language="javascript"> 
    function       GetRnd(min,max){      
          return       parseInt(Math.random()*(max-min+1)   +   min)+".html";      
    }  
    location="http://www.abc.com/"+GetRnd(10393,10443);  
    </script>