Skip to content

mock-end/random-millisecond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Generate a random millisecond.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published