diff --git a/src/Faker/Provider/Base.php b/src/Faker/Provider/Base.php index 6d7a66ec9a..f1650cb216 100644 --- a/src/Faker/Provider/Base.php +++ b/src/Faker/Provider/Base.php @@ -110,6 +110,9 @@ public static function randomFloat($nbMaxDecimals = null, $min = 0, $max = null) if (null === $max) { $max = static::randomNumber(); + if ($min > $max) { + $max = $min; + } } if ($min > $max) {