{"_id":"@cjser/unique-random__v3_0_0","name":"@cjser/unique-random__v3_0_0","dist-tags":{"latest":"3.0.0-cjser.2"},"versions":{"3.0.0-cjser.2":{"name":"@cjser/unique-random__v3_0_0","version":"3.0.0-cjser.2","description":"Generate random numbers that are consecutively unique","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https:/sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./index.js"},"engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["unique","random","number","single","generate","non-repeating","consecutively"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"3.0.0","cjserVersion":2,"original":{"name":"unique-random","version":"3.0.0","exports":"./index.js","repository":"sindresorhus/unique-random","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/unique-random__v3_0_0@3.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-XuiDjBM6dqB9NsennGzZT+EcTJFoHwaQnzzEdp0xjEod6uYTQda2HSb81Tx1Pd5E5TruDI+RsQOG0EgARmZZvA==","shasum":"f894b57f14e3731f2f42021c6c2f42cbe977c723","tarball":"https://registry.npmjs.org/@cjser/unique-random__v3_0_0/-/unique-random__v3_0_0-3.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":6194,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIASGtxSgmzxQhJPUr0w/rAI342Tzds1uupcbnR4luTrdAiBuEqIXsEitMCoRJYQcwtyaESeWN/OT8xPSwachJpys2Q=="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unique-random__v3_0_0_3.0.0-cjser.2_1778160507778_0.9573806490887717"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:28:27.691Z","3.0.0-cjser.2":"2026-05-07T13:28:27.961Z","modified":"2026-05-07T13:28:28.171Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Generate random numbers that are consecutively unique","keywords":["unique","random","number","single","generate","non-repeating","consecutively"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https:/sindresorhus.com"},"license":"MIT","readme":"# unique-random\n\n> Generate random numbers that are consecutively unique\n\nUseful for things like slideshows where you don't want to have the same slide twice in a row.\n\n## Install\n\n```\n$ npm install unique-random\n```\n\n## Usage\n\n```js\nimport uniqueRandom from 'unique-random';\n\nconst random = uniqueRandom(1, 10);\n\nconsole.log(random(), random(), random());\n//=> 5 2 6\n```\n\n## API\n\n### uniqueRandom(minimum, maximum)\n\nReturns a function, that when called, will return a random number that is never the same as the previous.\n\n## Related\n\n- [unique-random-array](https://github.com/sindresorhus/unique-random-array) - Get consecutively unique elements from an array\n- [random-int](https://github.com/sindresorhus/random-int) - Generate a random integer\n- [random-float](https://github.com/sindresorhus/random-float) - Generate a random float\n- [random-item](https://github.com/sindresorhus/random-item) - Get a random item from an array\n- [random-obj-key](https://github.com/sindresorhus/random-obj-key) - Get a random key from an object\n- [random-obj-prop](https://github.com/sindresorhus/random-obj-prop) - Get a random property from an object\n- [unique-random-at-depth](https://github.com/Aweary/unique-random-at-depth) - This module with an optional depth argument\n- [crypto-random-string](https://github.com/sindresorhus/crypto-random-string) - Generate a cryptographically strong random string\n\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/unique-random\n","readmeFilename":"readme.md","_rev":"1-0162c4e6dbcec0b9276f15662a6564c0"}