随机数的生成
js函数
<SCRIPT LANGUAGE="JavaScript">
function ahkeji_com(lbound, ubound) {
return(Math.floor(Math.random() * (ubound - lbound)) + lbound);
}
</script>
html使用
<dd>
好评: (
<SCRIPT LANGUAGE="JavaScript">
document.write(ahkeji_com(80, 200));
</script>
评)
</dd>