1
0
mirror of https://github.com/fzaninotto/Faker.git synced 2025-03-20 07:19:50 +01:00

Merge pull request from radmen/master

Bug in Faker\Provider\Miscellaneous::boolean
This commit is contained in:
Francois Zaninotto 2011-12-06 01:30:11 -08:00
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;
}
/**