Files
SupportBot/node_modules/chance/docs/thing/animal.md
T
2021-02-02 13:50:53 +00:00

26 lines
355 B
Markdown

# 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`