{"_id":"random-index","_rev":"8-383ce6e1b570d795e1d1f7ba2d4f80c9","name":"random-index","description":"Return a random array-like index.","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.0":{"name":"random-index","version":"0.0.0","description":"Generate a random array-like index.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bubkoo/random-index.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com","url":"https://github.com/bubkoo"},"license":"MIT","bugs":{"url":"https://github.com/bubkoo/random-index/issues"},"homepage":"https://github.com/bubkoo/random-index#readme","gitHead":"078091cda8feb512cc3375346ad969becde7d223","_id":"random-index@0.0.0","_shasum":"6460ece6b47a1e31494296a979730e7d3f373f49","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"6460ece6b47a1e31494296a979730e7d3f373f49","tarball":"https://registry.npmjs.org/random-index/-/random-index-0.0.0.tgz","integrity":"sha512-sr4B1DUjXOwOM+C0eo5LfkhuRK9sbJi+ZQ5TE/KLu+808NLfoBF467OtW0QQjnpc/ee9dlV47ctQmXJD66sIGQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDq7VuhKcGhb6f2AMPheFPByPA3+Hz1yGw2qKhvhvVn4gIhAMFquTWlojz+anHZprM9pm9DiAdF2a4vve/EbmQvJrps"}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-index-0.0.0.tgz_1460609916024_0.38951936131343246"}},"1.0.0":{"name":"random-index","version":"1.0.0","description":"Generate a random array-like index.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["generator","generate","gen","random","randomize","rand","index","array","array-like","natural","int","integer","num","number","max","min","math"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bubkoo/random-index.git"},"bugs":{"url":"https://github.com/bubkoo/random-index/issues"},"homepage":"https://github.com/bubkoo/random-index#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"to-length":"^1.0.0"},"gitHead":"ef7e6bbb38a6fb89075433989838fba18906666c","_id":"random-index@1.0.0","_shasum":"601640ce21a0290d99411200475680582422aae0","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"601640ce21a0290d99411200475680582422aae0","tarball":"https://registry.npmjs.org/random-index/-/random-index-1.0.0.tgz","integrity":"sha512-7yPoq/+fBApbQRp9OtlDnnJEAO3t81n2f6oFKGjpDFxYqNFFAvejivxJnjNeQuz9XlEME9sboP/AnWstl0DnQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDPFx2/9+iRDg2pBYhesPrVbgmpkGQ15dt/BAzhtLnEgAiEA2nxyHguTmg1xCAZD/Zi0xFql4hUfbWaphb7p6f95buc="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/random-index-1.0.0.tgz_1460611089871_0.3801586567424238"}},"1.0.1":{"name":"random-index","version":"1.0.1","description":"Generate a random array-like index.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["generator","generate","gen","random","randomize","rand","index","array","array-like","natural","int","integer","num","number","max","min","math"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bubkoo/random-index.git"},"bugs":{"url":"https://github.com/bubkoo/random-index/issues"},"homepage":"https://github.com/bubkoo/random-index#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"to-length":"^1.0.0"},"gitHead":"16751bd0ab6c259f72fcb41932f0738ad65d3847","_id":"random-index@1.0.1","_shasum":"9eb3e2be0c5b432b48b117d174cf91cd3c675359","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"9eb3e2be0c5b432b48b117d174cf91cd3c675359","tarball":"https://registry.npmjs.org/random-index/-/random-index-1.0.1.tgz","integrity":"sha512-3tp8cNV+I1/E3ApzKeJJEugts3TuoNKVhH6EGF/EJRjPJN7zoalNd1tPzX5AAWP0FoSwQeWzm99RnLW19YwxlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbAdP0JAKMH9Axx8iDpE5FPM2Rr2wranyPTVDmHwKOfAiA3vCo7nwy9s5+mSOg8VCFTrYiEQ5cBnWpqXCVUHS8IWA=="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-index-1.0.1.tgz_1460611396204_0.8827745441813022"}},"1.0.2":{"name":"random-index","version":"1.0.2","description":"Generate a random array-like index.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","prepublish":"npm test"},"keywords":["generator","generate","gen","random","randomize","rand","index","array","array-like","natural","int","integer","num","number","max","min","math"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mock-end/random-index.git"},"bugs":{"url":"https://github.com/mock-end/random-index/issues"},"homepage":"https://github.com/mock-end/random-index#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5"},"dependencies":{"to-length":"^1.0.0"},"gitHead":"d898333e97391c06f108c73c45e22488a563de93","_id":"random-index@1.0.2","_shasum":"cc62d0fc4bf4cb938cbca72ad2098edea5c2bde5","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"cc62d0fc4bf4cb938cbca72ad2098edea5c2bde5","tarball":"https://registry.npmjs.org/random-index/-/random-index-1.0.2.tgz","integrity":"sha512-hzVZtnY3+y2b95Na6gQNnmm+lUSOwLafhxIGSQz2fTrch/oQyQbtOy6PdzOhnxMGIkj2JfkskDIFsxJ7nUjDiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1epn8NqIIAzWanJeEULJUNo7Lq7F0VsNTtgn9WJodiAIhAPl8qpuZtV7+bAU+xlGipKAfZQ5+de80nu7U7bVYByYf"}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-index-1.0.2.tgz_1460730631885_0.9822740636300296"}},"1.0.3":{"name":"random-index","version":"1.0.3","description":"Return a random array-like index.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","watch":"onchange 'index.js' 'test/**/*.js' -e 'test/coverage/**/*.js' -- npm test","prepublish":"npm test"},"keywords":["index","int","integer","num","number","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mock-end/random-index.git"},"bugs":{"url":"https://github.com/mock-end/random-index/issues"},"homepage":"https://github.com/mock-end/random-index#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5","onchange":"^2.4.0"},"dependencies":{"max-array-length":"^1.0.0","random-natural":"^1.0.2","to-length":"^1.0.0"},"gitHead":"50dcb2ae320b11997bf97363016eae5d3870174b","_id":"random-index@1.0.3","_shasum":"fdc1b46f1b147c5dfcaa3380b9a3b6034e3c21c2","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"fdc1b46f1b147c5dfcaa3380b9a3b6034e3c21c2","tarball":"https://registry.npmjs.org/random-index/-/random-index-1.0.3.tgz","integrity":"sha512-1KL2X4bC+mj1XFEY/ZziIQt3pQH/ZtffG49HkwAqOou6RLFPZ7gn3wyxJcPCMY+6oR3z8WTlWoCe33O4GRv2vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpzsZ4eHmTzrKNkNrvuTXDC0OaE05Z/RnjHVniyUEkVgIhAJVTsvbqQp4aFy869pFRaNRIa8DLnh0xchXKnGRX59b3"}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-index-1.0.3.tgz_1461430081078_0.5468818733934313"}},"1.0.4":{"name":"random-index","version":"1.0.4","description":"Return a random array-like index.","main":"index.js","scripts":{"lint":"jshint index.js","pretest":"npm run lint","test":"mocha -R spec","test:cov":"rm -rf ./test/coverage && istanbul cover _mocha --dir ./test/coverage -- -R spec","test:rpt":"npm run test:cov && coveralls < ./test/coverage/lcov.info","watch":"onchange 'index.js' 'test/**/*.js' -e 'test/coverage/**/*.js' -- npm test","prepublish":"npm test"},"keywords":["index","int","integer","number","generator","generate","random","randomly","randomize","chance","test","dice","mock"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/mock-end/random-index.git"},"bugs":{"url":"https://github.com/mock-end/random-index/issues"},"homepage":"https://github.com/mock-end/random-index#readme","devDependencies":{"jshint":"^2.9.1","chai":"^3.5.0","coveralls":"^2.11.9","istanbul":"^0.4.2","mocha":"^2.4.5","onchange":"^2.4.0"},"dependencies":{"max-array-length":"^1.0.0","random-natural":"^1.0.3"},"gitHead":"f0b07ab3c82422e1701386fb345c05929fbb103b","_id":"random-index@1.0.4","_shasum":"54c0d1ed7c7fc43683fc88d64b7713bdf5b4e61d","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.4.0","_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"dist":{"shasum":"54c0d1ed7c7fc43683fc88d64b7713bdf5b4e61d","tarball":"https://registry.npmjs.org/random-index/-/random-index-1.0.4.tgz","integrity":"sha512-CH+/AYc8E+We37g1CtND9G6mbqcYGU+8jDoKYFjXBgAJvSZ9goxWqeI/plx7jlShkULUk8Si8HfNJTJd67BaPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDubXKTDlCr8FsTT9bcq8We1KR4x2E9K9gWVLjTRUDndAIgbO5JRP7+jKjWMDZjiaiYnkcu6RNxvkGsj59DTgL6YAE="}]},"maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/random-index-1.0.4.tgz_1461561842502_0.052768584340810776"}}},"readme":"# random-index\n\n> Return a random array-like index.\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-index/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/mock-end/random-index/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-index)\n[![coverage:?](https://img.shields.io/coveralls/mock-end/random-index/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-index)\n\n\n## Install\n\n```\n$ npm install --save random-index \n```\n\n## Usage\n\n> For more use-cases see the [tests](https://github.com/mock-end/random-index/blob/master/test/spec/index.js)\n\n```js\nvar randomIndex = require('random-index');\n\n// API:\n// - randomIndex([options]);\n\n// options\n// - min\n// - max\n\n\nrandomIndex();     \n// => 3561           \n\nrandomIndex({ max: 1 });    \n// => 1\n\nrandomIndex({ min:10, max: 100 });\n// => 64   \n```\n\n**Note**: these `min` and `max` are **inclusive**, so they are included in the range. \n\nThis means `randomIndex({max: 2})` would return either `0`, `1`, or `2`.\n\n\n## Related\n\n- [random-integral](https://github.com/mock-end/random-integral) - Return a random integer.\n- [random-natural](https://github.com/mock-end/random-natural) - Return a random natural number.\n- [random-decimal](https://github.com/mock-end/random-decimal) - Return a random decimal.\n- [random-floating](https://github.com/mock-end/random-floating) - Return a random floating point number.\n- [random-binary](https://github.com/mock-end/random-binary) - Return a random binary number.\n- [random-octal](https://github.com/mock-end/random-octal) - Return a random octal number.\n- [random-hexadecimal](https://github.com/mock-end/random-hexadecimal) - Return a random hexadecimal number.\n- [random-unicode](https://github.com/mock-end/random-unicode) - Return a random unicode. \n- [random-bool](https://github.com/mock-end/random-bool) - Return a random boolean (true/false).\n- [random-char](https://github.com/mock-end/random-char) - Return a random char.\n\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/mock-end/random-index/issues/new).\n","maintainers":[{"name":"bubkoo","email":"bubkoo.wy@gmail.com"}],"time":{"modified":"2022-06-25T11:30:09.981Z","created":"2016-04-14T04:58:36.557Z","0.0.0":"2016-04-14T04:58:36.557Z","1.0.0":"2016-04-14T05:18:10.446Z","1.0.1":"2016-04-14T05:23:19.226Z","1.0.2":"2016-04-15T14:30:35.195Z","1.0.3":"2016-04-23T16:48:04.267Z","1.0.4":"2016-04-25T05:24:04.528Z"},"homepage":"https://github.com/mock-end/random-index#readme","repository":{"type":"git","url":"git+https://github.com/mock-end/random-index.git"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"bugs":{"url":"https://github.com/mock-end/random-index/issues"},"license":"MIT","readmeFilename":"README.md","keywords":["index","int","integer","number","generator","generate","random","randomly","randomize","chance","test","dice","mock"]}