Skip to content

Commit fcbd94e

Browse files
author
zhaoxiang
committed
modified 完善注释
1 parent 9a96177 commit fcbd94e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

application/util/StrRandom.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public static function randomFloat($min = -999999999, $max = 999999999, $dmin =
3535
return floatval($intNum . '.' . $rand . $floatEnd);
3636
}
3737

38+
/**
39+
* 构建随机IP地址
40+
* @return string
41+
* @author zhaoxiang <zhaoxiang051405@gmail.com>
42+
*/
3843
public static function randomIp() {
3944
$ipLong = [
4045
['607649792', '608174079'], // 36.56.0.0-36.63.255.255

0 commit comments

Comments
 (0)