random-day
Generate a random day.


Install
$ npm install --save random-day
Usage
var randomDay = require('random-day');
By default, returns a day in a random month, from 1
to 31
.
randomDay();
Optionally specify month:
randomDay({ month: 1 });
Optionally specify year when month is 2
to figure out leap years:
randomDay({ year: 2016 month: 2 });
Optionally specify min, max, or both to limit the range.
randomDay({ min: 10 });
randomDay({ max: 10 });
randomDay({ min: 3, max: 9 });
Related
Contributing
Pull requests and stars are highly welcome.
For bugs and feature requests, please create an issue.