Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Fix readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Sep 2, 2014
1 parent c6857ca commit 584a33b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,14 @@ echo $faker->name; // 'Jess Mraz I';
> $faker->dateTime('2014-02-25 08:37:17'); // will return always the same date when seeded
> ```
>
> **Tip**: Formatters won't reproduce the same fake data if you use the php function `rand()`, use `$faker` instead :
> **Tip**: Formatters won't reproduce the same fake data if you use the `rand()` php function. Use `$faker` or `mt_rand()` instead:
>
> ```php
> <?php
> //BAD
> $faker->realText(rand(10,20));
> //GOOD
> $faker->realText($faker->numberBetween(10,20));
> // bad
> $faker->realText(rand(10,20));
> // good
> $faker->realText($faker->numberBetween(10,20));
> ```
Expand Down

0 comments on commit 584a33b

Please sign in to comment.