mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-20 07:19:50 +01:00
Merge pull request #27 from radmen/master
Bug in Faker\Provider\Miscellaneous::boolean
This commit is contained in:
commit
c9b158f10b
@ -13,7 +13,7 @@ class Miscellaneous extends \Faker\Provider\Base
|
||||
*/
|
||||
public static function boolean($chanceOfGettingTrue = 50)
|
||||
{
|
||||
return mt_rand(0, 100) <= $chanceOfGettingTrue ? true: false;
|
||||
return mt_rand(1, 100) <= $chanceOfGettingTrue ? true: false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user