Skip to content

Commit 4b48bff

Browse files
authored
Fix random number comments (FakerPHP#53)
The range mentioned in the comments doesn't match with what the description says.
1 parent b3d2a54 commit 4b48bff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/formatters/numbers-and-strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Generates a random integer from 0 until 9.
77
```php
88
echo $faker->randomDigit();
99

10-
// an integer between 0 and 10
10+
// an integer between 0 and 9
1111
```
1212

1313
## `randomDigitNot`
@@ -17,7 +17,7 @@ Generates a random integer from 0 until 9, excluding a given number.
1717
```php
1818
echo $faker->randomDigitNot(2);
1919

20-
// 1, 3, 4, 5, 6, 7, 8 or 9
20+
// 0, 1, 3, 4, 5, 6, 7, 8 or 9
2121
```
2222

2323
## `randomDigitNotNull`
@@ -27,7 +27,7 @@ Generates a random integer from 1 until 9.
2727
```php
2828
echo $faker->randomDigitNotNull();
2929

30-
// an integer between 1 and 10
30+
// an integer between 1 and 9
3131
```
3232

3333
## `randomNumber`

0 commit comments

Comments
 (0)