Skip to content

Commit

Permalink
docs: document $chanceOfGettingTrue for boolean (#92)
Browse files Browse the repository at this point in the history
* docs: document $chanceOfGettingTrue for boolean

* Update miscellaneous.md

---------

Co-authored-by: Bram <[email protected]>
  • Loading branch information
justinkekeocha and bram-pkg authored Jan 10, 2025
1 parent 20ee202 commit 66987fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/formatters/miscellaneous.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@

Generate a random `bool`.

Optionally, a float (between 0.0 and 1.0) or an integer (between 0 and 100) can be passed, which changes the chance of getting `true`.

```php
echo $faker->boolean();
// 50% chance of true
echo $faker->boolean(0.5);

// true, true, false
```
Expand Down

0 comments on commit 66987fa

Please sign in to comment.