1.0.4 • Published 8 years ago

random-millisecond v1.0.4

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

random-millisecond

Generate a random millisecond.

MIT License

build:? coverage:?

Install

$ npm install --save random-millisecond 

Usage

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

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

randomMillisecond();
// => 379

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

randomMillisecond({ min: 100 });
// => 188

randomMillisecond({ max: 400 });
// => 235

randomMillisecond({ min: 100, max: 400 });
// => 324

Related

Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.