We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20ee202 commit 66987faCopy full SHA for 66987fa
1 file changed
docs/formatters/miscellaneous.md
@@ -4,8 +4,11 @@
4
5
Generate a random `bool`.
6
7
+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`.
8
+
9
```php
-echo $faker->boolean();
10
+// 50% chance of true
11
+echo $faker->boolean(0.5);
12
13
// true, true, false
14
```
0 commit comments