Skip to content

Commit

Permalink
Update README.md (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkimble authored and stympy committed Mar 1, 2017
1 parent b8450d5 commit 7d45f89
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ that have been returned, for example between tests.
Faker::Name.unique.clear # Clears used values for Faker::Name
Faker::UniqueGenerator.clear # Clears used values for all generators
```
It is also possible to add a random number to the end of faker data to increase the
likelihood of unique data being generated. For example:

```ruby
Faker::Name.unique + ((1..1000).to_a).sample
```

## Customization

Expand Down

0 comments on commit 7d45f89

Please sign in to comment.