random-minute

Generate a random minute.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
random-minute
001.0.48 years ago8 years agoMinified + gzip package size for random-minute in KB

Readme

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.