summaryrefslogtreecommitdiff
path: root/src/node_modules/chance/docs/thing/animal.md
blob: de7f9c07bf60abdfe921cf4dfefa0afd14ba4ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# animal

```js
// usage
chance.animal()
chance.animal({type: 'zoo'})
```

Generate a random animal

```js
chance.animal();
=> 'Cobra'
```

Default is any type of animal.

Optionally specify a specific type of animal

```js
chance.animal({type: 'zoo'});
=> 'Lion'
```

Allowed types are: `ocean`, `desert`, `grassland`, `forest`, `farm`, `pet`, and `zoo`