{"_id":"@-silver/random-rng","_rev":"1-af00e6cec2684adc2bac782801ca67f2","name":"@-silver/random-rng","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@-silver/random-rng","version":"1.0.0","description":"Random assortment of RNG-based functions.","main":"rand.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"silvxrcat"},"license":"MIT","_id":"@-silver/random-rng@1.0.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-MZicsVLJnfyzSicgsEmSPcufFv1AEAE9wkvcCYCMUQ0kfnQ/ms6wiM/lGlM4ZxMSaqBcR+h3X9Ne03vTlY9Ebw==","shasum":"32786f9d43abb029c7bf6eb9d8cae0fca8005c8f","tarball":"https://registry.npmjs.org/@-silver/random-rng/-/random-rng-1.0.0.tgz","fileCount":4,"unpackedSize":6185,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWYJKiW7HVErNK9xpfoPBtFnKJbU8+ollIKd+U+MmyxAiAuIrU0KRdfU9EKFvH1XhrAuRvzqA+rvLdo6M+o2F1Q8w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimCILACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/Bw//fZsTEKj12hIx2LZLDVdYvyScPQj6BQ9GESSXaSt88ryEtfgX\r\nu3A6asij1NczRxl2kN7VBz5PjFKGMJC3kebQjOy0m9qbjZgBlfl4VgX3rtzl\r\nZ2IOkiS01aJKyeB4BICzP9kRluEHfQMRrrxpXFvBhFyLsD72kBPDZifUqq0g\r\nIpSCXoaB2y53PHiIsmU9hn/RBzkABjfvsIyNiS8Y6EPWL5StqCRURkg6bm10\r\nu+O9HIO7N4DYPN38FSQjjlhJOsE9oXCgufeNBaihztmlredY3L3hXrMSoeZV\r\nkyJhuBef+G+7FyUZWK8CPEBZenhtLv4optJd/NG0UvqM8OLj715U22Fw3NUU\r\nihpTfZ3cbuYkFPRaqUqnkLtZJF6j+yiTP1kO/DHPt6u9T0kAGmXnB7HLbHA9\r\nXEihL4u+jIkWOeGYFugAZMVjCk8IFOdP/Iq7u0oavAkY4mkJAPvcga2vMi7S\r\nNT0us5aYlksWK7xBu09tcRqqg9f3qPxxPHC/07iQSpeFBmRnZ+njHi9yZHCn\r\nPLYYUYkaXZG7jXkaWBsEFZzRAIM8Lr/g5m4w5AyYfy6ShNmEA2sZJLcPW79F\r\nZiPNSr2pPQUqtvz7vplKrkZ9oywff8vVZCDduvqGoW/XgyQ3MvaZgBg57PqG\r\n1M6PioT69Korv/xqeO+uGgGegY1R8Mwoz00=\r\n=bNOv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"-silver","email":"silvxrcat@gmail.com"},"directories":{},"maintainers":[{"name":"-silver","email":"silvxrcat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-rng_1.0.0_1654137355189_0.5538613266595354"},"_hasShrinkwrap":false},"1.0.1":{"name":"@-silver/random-rng","version":"1.0.1","description":"Random assortment of RNG-based functions.","main":"rand.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/silvxrcat/random-rng.git"},"keywords":["random","rng","silvxrcat","-silver","chance"],"bugs":{"url":"https://github.com/silvxrcat/random-rng/issues"},"homepage":"https://github.com/silvxrcat/random-rng","author":{"name":"silvxrcat"},"license":"MIT","_id":"@-silver/random-rng@1.0.1","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-gisAwydiR/N4NBpD/sQ1fWrRhCRqjPcqZAxX1JpALBDTLhMCk8MJMqob8KluHAy+UuJgM7AInZ9CguhUqsZmPA==","shasum":"6a35f8f822eb096f5d9528defe9c6ffd379627c2","tarball":"https://registry.npmjs.org/@-silver/random-rng/-/random-rng-1.0.1.tgz","fileCount":4,"unpackedSize":6794,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLVFDOyt2yUCW8CTCEV7lEuQHNt+E2UErYO1QJHO3JsAiBthURVBTfV7mdVwOVCJxX3zPkyc+oLy5w8jLLDIuSTPA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimCUIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKfRAAnE2V6jBagSAATD11prY74c3gjbLGdYFueBgnlEcUQhaMUcbY\r\n8zFJl3aaaaH7Ile42zeLLltgRSKLFw3tKRBGyKy09Kp8khdwe/Thu5nXC0XT\r\nzurL9NM1wRPDExW6rG4oWKD+paLXo6gfWAKehhPOME6fzi1wr+TeTaJvSxjb\r\neC1/ZSATo8y3pz6aEAnXD0ekG2Yu7KMyrDFBSMCCF1aoqHkrUCyfKwpdzz3z\r\nDSzsEV1FME2Y7TAH7jHU6rRh8az842no3WNDiz/05g+7yLbDkJLJi+ivNuva\r\nqu3Ld0Ikbs9wv+5zcpSlYrppcdKWY8wGlJcJx3v0uTrrp6mJkczpWpXihHET\r\nARCMQIuFNdWWPJi8nKRImv3qqNsWtJrHN5G/oBawVnn5m66fIkxCHuQSMV5r\r\n8wlC0dT7VlLhcwhla2NVh70LCQmPNs8PqQNDAYLgYC5Mm27/z2B+kQC3pclg\r\nZ2NMIDEaOSoC0j+lgfD5O+e06qNcn0A3Ak9JMor9JDv+p8k5JCVEUPehK7j7\r\nv0ZcNOz8Ju+dMR2isyyPXsEQIDQAEC2biZYQnoyyTHTGjnWzonmbs9Y3LpJb\r\nIRE7yQdqv5y2P/Lq2PYdb622Is8fMh8rUR2OjFBVrXQWD/KlsE0/U4SR3yQJ\r\n7y5AqANptFaQEwaiM26Hb4w72XUG2vBUdVE=\r\n=Tz8f\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"-silver","email":"silvxrcat@gmail.com"},"directories":{},"maintainers":[{"name":"-silver","email":"silvxrcat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/random-rng_1.0.1_1654138120568_0.4696937770602241"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-02T02:35:55.120Z","1.0.0":"2022-06-02T02:35:55.359Z","modified":"2022-06-02T02:48:40.819Z","1.0.1":"2022-06-02T02:48:40.747Z"},"maintainers":[{"name":"-silver","email":"silvxrcat@gmail.com"}],"description":"Random assortment of RNG-based functions.","author":{"name":"silvxrcat"},"license":"MIT","readme":"# random-rng\r\nRandom assortment of RNG-based functions. You never needed this, but now you have it.\r\n\r\n## Installing\r\nI prefer `require()` but I don't care what you use.\r\n```js\r\nconst { ... } = require(\"random-rng\")\r\n```\r\n```js\r\nimport { ... } from 'random-rng'\r\n```\r\n\r\n## Usage\r\n- [odds](#odds)\r\n- [gen_word](#genword)\r\n- [gen_sentence](#gensen)\r\n- [gen_paragraph](#genpar)\r\n- [gen_title](#gentitle)\r\n\r\n<div id=\"odds\"></div>\r\n\r\n### odds\r\nUses a number through 1 - 99 to use as a percentage in RNG.\r\n\r\n**Example**\r\n```js\r\nconst { odds } = require(\"random-rng\")\r\n\r\nif (odds(15)) { // 15% of the time\r\n  console.log(\"You win!\")\r\n} else {\r\n  console.log(\"You lose...\")\r\n}\r\n```\r\n\r\n<div id=\"genword\"></div>\r\n\r\n### gen_word\r\nGenerates a random word that may or may not be real. (we don't know)\r\n\r\n**Example**\r\n```js\r\nconst { gen_word } = require(\"random-rng\")\r\n\r\nif (gen_word() == \"hi\") { // pretty small chance\r\n  console.log(\"Hello!!\")\r\n} else {\r\n  console.log(\"???????\")\r\n}\r\n```\r\n\r\n<div id=\"gensen\"></div>\r\n\r\n### gen_sentence\r\nGenerates a random sentence with random punctuation and random words. I'm going to admit this uses [gen_word](#genword).\r\n\r\n`len` - Length of the sentence in words.\r\n\r\n**Example**\r\n```js\r\nconst { gen_sentence } = require(\"random-rng\")\r\n\r\n// possible social app code\r\n\r\nif (user.new) {\r\n  user.bio = gen_sentence(8) // generates a random 8 sentence bio.\r\n}\r\n```\r\n\r\n<div id=\"genpar\"></div>\r\n\r\n### gen_paragraph\r\nGenerates a full-blown paragraph using [gen_word](#genword) and [gen_sentence](#gensen). This was made for fun.\r\n\r\n`min` - Minimum length of a sentence in words.<br>\r\n`max` - Maximum length of a sentence in words.<br>\r\n`len` - The amount of sentences in the paragraph.\r\n\r\n**Example**\r\n```js\r\nconst { gen_paragraph } = require(\"random-rng\")\r\n\r\n// possible showcase app here\r\n\r\napp.box[92].content = gen_paragraph() // generates filler text for box 92.\r\n```\r\n\r\n<div id=\"gentitle\"></div>\r\n\r\n### gen_title\r\nGenerates a title for a movie, a video game, I don't know. Some combinations might be- uh... mature.\r\n\r\n**Example**\r\n```js\r\nconst { gen_title } = require(\"random-rng\")\r\n\r\n// possible book creation code here\r\n\r\nbook.filler_title = gen_title() // generates a filler title that the user can change (if they want to)\r\n```\r\n\r\n## *Have fun.*","readmeFilename":"README.md","homepage":"https://github.com/silvxrcat/random-rng","keywords":["random","rng","silvxrcat","-silver","chance"],"repository":{"type":"git","url":"git+https://github.com/silvxrcat/random-rng.git"},"bugs":{"url":"https://github.com/silvxrcat/random-rng/issues"}}