首 页 ASP ASP.NET PHP JSP Ajax DIV+CSS JavaScript XML C#
MySQL MSSQL Access Oracle Linux Server 电脑技巧 网络安全 建站经验 其它

获取数字随机数

整理日期:2007年03月02日 【字体:


伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-03/1172834730.html
Function getRandNumber ($fMin, $fMax) {
 srand((double)microtime()*1000000);
 $fLen = "%0".strlen($fMax)."d";
 Return sprintf($fLen, rand($fMin,$fMax));

Tags:
获取数字随机数
'http://www.etoow.com/html/2007-03/1172834730.html
1
 
信息搜索
  
联系我们关于本站广告服务设为首页 收藏本站友情链接网站地图
Copyright © Etoow.com Inc. All Rights Reserved