1.0.4 • Published 8 years ago

random-minute v1.0.4

Weekly downloads
555
License
MIT
Repository
github
Last release
8 years ago

random-minute

Generate a random minute.

MIT License

build:? coverage:?

Install

$ npm install --save random-minute 

Usage

var randomMinute = require('random-minute');
  
// API
// - randomMinute([options]);
  
// options
// - min
// - max

By default, returns a minute from 0 to 59. Idea is for generating a clock time.

randomMinute();
// => 37

Optionally specify min, max, or both to limit the range.

randomMinute({ min: 10 });
// => 18

randomMinute({ max: 40 });
// => 23

randomMinute({ min: 10, max: 40 });
// => 32

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.