random-range
Generate an array of random number ranges. Useful for creating test fixtures or benchmarking samples.
Install
npm:
Install withnpm i random-range --save-dev
Run tests
npm test
Usage
var randomRange = ; ;//=> [19, 24];//=> [0, 11];//=> [10, 14]
If a number is passed as a second argument, an array of ranges will be returned:
;//=> [ [ 7, 23 ], [ 25, 26 ], [ 7, 18 ], [ 4, 26 ], [ 10, 12 ] ]
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 02, 2014.