Generates a random momentjs object
npm install moment-random
> Generates a new random moment.js object
npm or yarn
```
$ npm install --save moment-random``
$ yarn add moment-random
---
Just require it like any other library
`js
const momentRandom = require('moment-random');
momentRandom();
// > random date in the past
`
You can also specify an interval
`js
momentRandom(end)
// > random date between 0 unix time and {end} dates
momentRandom(end, start)
// > random date between {start} and {end} dates
`
Arguments
- end, start` - anything a moment constructor accepts (see moment.js docs )