Skip to content

Commit b49ac92

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

application/util/StrRandom.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class StrRandom {
1616
* @param int $max 整数部分的最大值,默认值为999999999
1717
* @param int $dmin 小数部分位数的最小值,默认值为 0
1818
* @param int $dmax 小数部分位数的最大值,默认值为 8
19-
* @return float|void
19+
* @return float
2020
* @author zhaoxiang <zhaoxiang051405@gmail.com>
2121
*/
2222
public static function randomFloat($min = -999999999, $max = 999999999, $dmin = 0, $dmax = 8) {
2323
if ($max <= $min || $dmax <= $dmin) {
24-
return;
24+
return 0.0;
2525
}
2626

2727
$rand = '';

0 commit comments

Comments
 (0)