下一篇 » « 上一篇

rand

作者:semirock    时间:2008-09-19    来源:http://444p.com    点击:440    本文共1篇文章 字体:[ ]

rand

<HTML>
<HEAD>
<TITLE>rand</TITLE>
</HEAD>
<BODY>
<?
srand(time());

//get ten random numbers from 1 to 100
for($index = 0; $index < 10; $index++)
{
print(rand(1,100) . "<BR>\n");
}
?>
</BODY>
</HTML>
发表评论
密码: (游客不需要密码)
记住我【Alt+S 或 Ctrl+Enter 快速提交】

搜索工具


《PHP函数》点击排行