You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
355 B
26 lines
355 B
4 weeks ago
|
# 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`
|