npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

random-uniq

1.0.1 • Public • Published

random-uniq Build Status

Generates random integers that are unique successively. Useful for generating random items that you don't want to appear consecutively after each call.

Install

npm install --save random-uniq

Usage

const randomUniq = require('random-uniq')
const randomInt = randomUniq(0, 15)

console.log(randomInt(), randomInt(), randomInt(), randomInt())
// prints - 10, 3, 9

install

npm i random-uniq

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability