代码如下: <script language="JavaScript"> <!-- rnd.today=new Date(); rnd.seed=rnd.today.getTime(); function rnd() { rnd.seed = (rnd.seed*9301+49297) % 233280; return rnd.seed/(233280.0); }; function rand(number) { return Math.ceil(rnd()*number); }; document.write(rand(100000)); --> </script> [Ctrl+A 全选 提示:你可先修改部分代码,再点运行代码]