Skip to content

Commit

Permalink
Added documentation for the new Assortment method.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstebo committed Oct 16, 2018
1 parent 060a5af commit bcd6547
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/random.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Faker.Random

```cs
Faker.Random.Element(new [] {1, 2, 3, 4, 5}) //=> 5
Faker.Random.Element(new[] {1, 2, 3, 4, 5}) //=> 5
Faker.Random.Element("test") //=> "e"
Faker.Random.Element("test") //=> "e"
Faker.Random.Assortment(new[] {1, 2, 3, 4, 5}, 5) // => [3, 2, 4, 5, 1]
Faker.Random.Assortment(new[] {"a", "b", "c"}, 10) // => ["b", "a", "a", "c", "b", "a", "b", "c", "c", "a"]
```

0 comments on commit bcd6547

Please sign in to comment.