## 20位随机数
```
/**
* 生成20位随机数
* @param [type] $type [类型,1:订单号,2随机数]
* @param integer $num [数量]
* @return [type] [字符串]
*/
function randomCode(){
list($usec, $sec) = explode(" ", microtime());
// 0.78994600 1595664806
$data = explode(".",$usec);
$sm = $sec.substr($data[1],0,7);
$guid = $sm.mt_rand(100,999);
return $guid;
}
```