{"name":"random-item","version":"1.0.0","description":"Get a random item from an array","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/random-item"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["rand","random","randomize","math","array","arr","item","el","element","pick","select"],"devDependencies":{"ava":"0.0.4","stable-fn":"^1.0.0"},"gitHead":"1742938f0d6c4789ca4af315d8f272997fc69086","bugs":{"url":"https://github.com/sindresorhus/random-item/issues"},"homepage":"https://github.com/sindresorhus/random-item","_id":"random-item@1.0.0","_shasum":"16ee31626cb050c8a1686a5f0f42a6b99a2aaf11","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"16ee31626cb050c8a1686a5f0f42a6b99a2aaf11","tarball":"http://registry-npm.ywwl.com/random-item/download/random-item-1.0.0.tgz","integrity":"sha512-jGLxPEhAxYBehfNkMZviwkJQN9/PnYtuV0qn3ZQT0YHMlMiTD70rGHjzL9s9SmUgpD/gNVkXbHixxJaCuWB2Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1R93+YGIonC9UE2Jab5rhPt8Tff17AMuXpGEoNO92sAiABpiWlaZHlYym6XtSF/VFRUqFCPYw/Oo1cMP31E6GjWQ=="}],"size":1629,"noattachment":false,"key":"/random-item/-/random-item-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"readme":"# random-item\n\n> Get a random item from an array\n\n## Install\n\n```\n$ npm install random-item\n```\n\n## Usage\n\n```js\nimport randomItem from 'random-item';\n\nrandomItem(['🐴', '🦄', '🌈']);\n//=> '🦄'\n\nrandomItem.multiple(['🐴', '🦄', '🌈'], 2);\n//=> ['🌈', '🦄']\n```\n\n## Related\n\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-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](https://github.com/sindresorhus/unique-random) - Generate random numbers that are consecutively unique\n- [unique-random-array](https://github.com/sindresorhus/unique-random-array) - Get consecutively unique elements from an array\n- [crypto-random-string](https://github.com/sindresorhus/crypto-random-string) - Generate a cryptographically strong random string\n","publish_time":1435358035495,"_cnpm_publish_time":1435358035495,"dist-tags":{"latest":"4.0.1"}}