2009年12月9日 星期三

[php]亂數函式 rand()

rand()函數是 php 用來產生出 INT 型態的亂數函式。

使用方法:
rand()
或是
rand(最小值 , 最大值)

Ps.注意這個函式的最大值,只有到32768。

沒有留言: