
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
random-range
Advanced tools
Generate an array of random number ranges. Useful for creating test fixtures or benchmarking samples.
Generate an array of random number ranges. Useful for creating test fixtures or benchmarking samples.
npm i random-range --save-dev
npm test
var randomRange = require('random-range');
randomRange(25);
//=> [19, 24]
randomRange(25);
//=> [0, 11]
randomRange(25);
//=> [10, 14]
If a number is passed as a second argument, an array of ranges will be returned:
randomRange(25, 5);
//=> [ [ 7, 23 ], [ 25, 26 ], [ 7, 18 ], [ 4, 26 ], [ 10, 12 ] ]
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on October 02, 2014.
FAQs
Generate an array of random number ranges. Useful for creating test fixtures or benchmarking samples.
We found that random-range demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.