From b49ac928823a74b220f20ad952ec7d1771e2d041 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Thu, 16 Aug 2018 22:09:43 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E5=AE=8C=E5=96=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/util/StrRandom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/util/StrRandom.php b/application/util/StrRandom.php index 75bdff2..22b7c2d 100644 --- a/application/util/StrRandom.php +++ b/application/util/StrRandom.php @@ -16,12 +16,12 @@ class StrRandom { * @param int $max 整数部分的最大值,默认值为999999999 * @param int $dmin 小数部分位数的最小值,默认值为 0 * @param int $dmax 小数部分位数的最大值,默认值为 8 - * @return float|void + * @return float * @author zhaoxiang */ public static function randomFloat($min = -999999999, $max = 999999999, $dmin = 0, $dmax = 8) { if ($max <= $min || $dmax <= $dmin) { - return; + return 0.0; } $rand = '';