php中的str_shuffle()和shuffle()和mt_rand()
string str_shuffle ( string $str ),改字符串函数为打算一个字符串,使用任何一种可能的排序方案。bool shuffle ( array &$array )该函数打乱数组的单元,使数组的单元随机排列顺序,返回bool值。
int mt_rand ( int $min , int $max ),如果没有提供可选参数 min 和 max,mt_rand() 返回 0 到 mt_getrandmax() 之间的伪随机数。例如想要 5 到 15(包括 5 和 15)之间的随机数,用 mt_rand(5, 15)。
页:
[1]