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.
22 lines
311 B
22 lines
311 B
4 weeks ago
|
# gender
|
||
|
|
||
|
```js
|
||
|
// usage
|
||
|
chance.gender()
|
||
|
```
|
||
|
|
||
|
Generate a random gender
|
||
|
|
||
|
```js
|
||
|
Chance.gender();
|
||
|
=> 'Female'
|
||
|
```
|
||
|
|
||
|
Extra genders can be provided using the `extraGenders` key in the optional options argument:
|
||
|
|
||
|
```js
|
||
|
Chance.gender({
|
||
|
extraGenders: ['Agender', 'Genderqueer', 'Trans', 'Pangender']
|
||
|
});
|
||
|
```
|