怎么样从20到40中随机生成一个数字?
------解决方案--------------------
- VB code
<% Function RndNumber(MaxNum,MinNum) Randomize RndNumber=int((MaxNum-MinNum+1)*rnd+MinNum) RndNumber=RndNumber End Function response.write RndNumber(40,20) %>
<% Function RndNumber(MaxNum,MinNum) Randomize RndNumber=int((MaxNum-MinNum+1)*rnd+MinNum) RndNumber=RndNumber End Function response.write RndNumber(40,20) %>