1 | # animal
|
2 |
|
3 | ```js
|
4 | // usage
|
5 | chance.animal()
|
6 | chance.animal({type: 'zoo'})
|
7 | ```
|
8 |
|
9 | Generate a random animal
|
10 |
|
11 | ```js
|
12 | chance.animal();
|
13 | => 'Cobra'
|
14 | ```
|
15 |
|
16 | Default is any type of animal.
|
17 |
|
18 | Optionally specify a specific type of animal
|
19 |
|
20 | ```js
|
21 | chance.animal({type: 'zoo'});
|
22 | => 'Lion'
|
23 | ```
|
24 |
|
25 | Allowed types are: `ocean`, `desert`, `grassland`, `forest`, `farm`, `pet`, and `zoo`
|