random-minute

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i random-minute

Weekly Downloads

217

Version

1.0.4

License

MIT

Last publish

Collaborators

  • bubkoo