函數singelRand(){
$ chars = " 1234567890 ";
$ string =
for($ I = 0;$ i & lt8;$i++){
srand((double)microtime()* 1000000);
$rand=rand(0,strlen($ chars)-1);
$string。=substr($chars,$rand,1);
}
返回$ string
}
函數產生50W(){
$ count = 50000
$ result = array();
for($ I = 0;$ i & lt$ count$i++){
array_push($result,singel rand());
}
返回$ result
}
$ a = produce 50w();
print _ r($ a);
& gt