diff --git a/src/Faker/Provider/Internet.php b/src/Faker/Provider/Internet.php index 972339c1d3..5f72d6c692 100644 --- a/src/Faker/Provider/Internet.php +++ b/src/Faker/Provider/Internet.php @@ -176,12 +176,12 @@ public function ipv6() */ public static function localIpv4() { - if (static::randomNumber(0, 1) === 0) { + if (static::numberBetween(0, 1) === 0) { // 10.x.x.x range - $ip = long2ip(static::randomNumber(167772160, 184549375)); + $ip = long2ip(static::numberBetween(167772160, 184549375)); } else { // 192.168.x.x range - $ip = long2ip(static::randomNumber(3232235520, 3232301055)); + $ip = long2ip(static::numberBetween(3232235520, 3232301055)); } return $ip; diff --git a/src/Faker/Provider/bn_BD/Address.php b/src/Faker/Provider/bn_BD/Address.php index d692b8451c..01e1c83609 100644 --- a/src/Faker/Provider/bn_BD/Address.php +++ b/src/Faker/Provider/bn_BD/Address.php @@ -48,7 +48,7 @@ public static function state() public static function streetNumber() { - return Utils::getBanglaNumber(static::randomNumber(1, 100)); + return Utils::getBanglaNumber(static::numberBetween(1, 100)); } public static function banglaStreetName() diff --git a/src/Faker/Provider/nl_NL/Person.php b/src/Faker/Provider/nl_NL/Person.php index ac1b527e8f..1df4937d9c 100644 --- a/src/Faker/Provider/nl_NL/Person.php +++ b/src/Faker/Provider/nl_NL/Person.php @@ -248,7 +248,7 @@ class Person extends \Faker\Provider\Person */ public function lastName() { - $determinator = static::randomNumber(0, 3); + $determinator = static::numberBetween(0, 3); if ($determinator === 0) { $lastName = static::randomElement(static::$longLastNames); } elseif ($determinator === 1) {