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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    126
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    126
  • 1.0.0
    0

Package Sidebar

Install

npm i random-uniq

Weekly Downloads

126

Version

1.0.1

License

MIT

Last publish

Collaborators

  • karloespiritu