{"_id":"ml-xsadd","_rev":"15-aff52cd9ebd6e4c5b069d22de042896b","name":"ml-xsadd","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"ml-xsadd","version":"1.0.0","keywords":["xsadd","xorshift","add","pseudo","random","number","generator","machine","learning"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"ml-xsadd@1.0.0","maintainers":[{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/mljs/xsadd#readme","bugs":{"url":"https://github.com/mljs/xsadd/issues"},"dist":{"shasum":"f53c350ee54c9738a9f77a386cdc5d2bc62385d0","tarball":"https://registry.npmjs.org/ml-xsadd/-/ml-xsadd-1.0.0.tgz","integrity":"sha512-adscJP7mqzsM/o3cnSK9TyCuhl6HMRWoaU2qh9T5AujyUj5mzT9kBBmBAs0D/NnShgLOcHvfCbnbwFw8rHxxLg==","signatures":[{"sig":"MEYCIQD1XpFJ+3oIVefx0mhDLZpiMg2RLv8WC+XxthSOCVpovAIhAI++Pt/BiHv+PEjFBjqJIIaxHOT2BZ6sKteftgmpvbzN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"xsadd-es5.js","_from":".","_shasum":"f53c350ee54c9738a9f77a386cdc5d2bc62385d0","gitHead":"002561ef155b8a8984114bf780be2ecd2e94fc9b","scripts":{"test":"npm run compile && mocha --require should-approximately-deep --reporter mocha-better-spec-reporter xsadd-test.js","compile":"babel xsadd.js --out-file xsadd-es5.js","prepublish":"npm run compile"},"_npmUser":{"name":"targos","email":"targos@live.com"},"repository":{"url":"git+https://github.com/mljs/xsadd.git","type":"git"},"_npmVersion":"2.13.0","description":"JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator","directories":{},"_nodeVersion":"2.4.0","devDependencies":{"babel":"^5.8.3","mocha":"^2.2.5","should":"^7.0.2","sprintf":"^0.1.5","should-approximately-deep":"^1.1.0","mocha-better-spec-reporter":"^2.1.1"}},"2.0.0":{"name":"ml-xsadd","version":"2.0.0","keywords":["xsadd","xorshift","add","pseudo","random","number","generator","machine","learning"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"ml-xsadd@2.0.0","maintainers":[{"name":"jeffersonh44","email":"swrt_9950@hotmail.com"},{"name":"lpatiny","email":"lpatiny@gmail.com"},{"name":"maasencioh","email":"maasencioh@gmail.com"},{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos@live.com"}],"homepage":"https://github.com/mljs/xsadd#readme","bugs":{"url":"https://github.com/mljs/xsadd/issues"},"dist":{"shasum":"e289308aaf1d68627d7baf198e7571192899f588","tarball":"https://registry.npmjs.org/ml-xsadd/-/ml-xsadd-2.0.0.tgz","fileCount":7,"integrity":"sha512-VoAYUqmPRmzKbbqRejjqceGFp3VF81Qe8XXFGU0UXLxB7Mf4GGvyGq5Qn3k4AiQgDEV6WzobqlPOd+j0+m6IrA==","signatures":[{"sig":"MEUCIQDw7IesuB8ibsPm8B2c33E17SzR4bXOFwZLSDPadP9B2wIgRcNpI5Mv78vsShHcvD88MU0KnGD8T1zHKrc59YwNn8c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9093,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbw0oCRA9TVsSAnZWagAAZoIP/RW9QwpNSW1UFvY/9RhA\nU1B6jEHSrV2cnU+Nh+hCLrxC5o5Eh8XpXUiPXFt4/L0ZW5gYaxQKdoat6NBa\ndzEfV00e2TF7DiDe6tavodVpm+AYDisdP/TUK4hlAVlJSG1OVEG4i49iNMNN\nwQGTf41jRYyvjUfG7SdYzD3DpbkAq6Dky142C7rMmVn/c/PO84ojYgMdaVWi\nfZjw0MlKJ1b9Rk+rRPLAO3m25O5jKBZ2lKo01AasHnDqBi3zBRjxLkYLJVlI\nxMyMkT18PEucM64Zhk5nQQAaTE/AKysnHBoCcG4BjZKo2FYu1KAEH9dU/ZE4\nfrhPJT018QvH7cDv2cixqEHuYgXgQt5j5zVScZngqP5VJok9gTeH0ID4HmtS\nYK/Wi6Rlr0LLuPEH7CyTEVSa/4edZGF2f6wa11OvHjYAkowVP7TTdHICkyYL\nUP/xJN/SnvpyXn/8G8GIVMKy9D+bWSBxyiOFwqErG226MxKuZzTcSNPPv3+m\nazs53fKpNoXhsyhGFXlmF0U468hMroRRS9zgAPe5iX9VUVi1w5K3sV9xEa/e\nHtr2YhyNBZ2zb5QsAHl6+ntMbIwKdp3h7P60iSWZ2/+sNs3CuGiwIOOAfx5O\njIgGLKDPV3ZfVxUoIZ6CtgvsUm05sGCh6PWxSarYDIBp3UijqcuHo3uF8NfJ\nqD2Q\r\n=zI59\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"./lib/xsadd.js","files":["lib","lib-es6"],"types":"./lib/xsadd.d.ts","module":"./lib-es6/xsadd.js","gitHead":"698ee59d7c813ecd96b8ad489b32765f1bea78ee","scripts":{"tsc":"npm run clean && npm run tsc-es5 && npm run tsc-es6","test":"npm run test-only && npm run tslint","clean":"rimraf lib lib-es6","tslint":"tslint --project tsconfig.base.json","tsc-es5":"tsc","tsc-es6":"tsc --project tsconfig.es6.json","test-only":"jest","tslint-fix":"npm run tslint -- --fix","prepublishOnly":"npm run tsc"},"_npmUser":{"name":"targos","email":"targos@live.com"},"repository":{"url":"git+https://github.com/mljs/xsadd.git","type":"git"},"_npmVersion":"6.2.0","description":"JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator","directories":{},"_nodeVersion":"10.8.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^23.5.0","rimraf":"^2.6.2","tslint":"^5.11.0","ts-jest":"^23.1.3","typescript":"^3.0.1","tslint-config-prettier":"^1.14.0"},"_npmOperationalInternal":{"tmp":"tmp/ml-xsadd_2.0.0_1534004520246_0.14476692295563742","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"ml-xsadd","version":"3.0.0","keywords":["xsadd","xorshift","add","pseudo","random","number","generator","machine","learning"],"author":{"name":"Michaël Zasso"},"license":"MIT","_id":"ml-xsadd@3.0.0","maintainers":[{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos+npm@protonmail.com"},{"name":"lpatiny","email":"luc@patiny.com"},{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"}],"homepage":"https://github.com/mljs/xsadd#readme","bugs":{"url":"https://github.com/mljs/xsadd/issues"},"dist":{"shasum":"3f49220d92bc36b4fcc5669eaa64d1f490f376f7","tarball":"https://registry.npmjs.org/ml-xsadd/-/ml-xsadd-3.0.0.tgz","fileCount":22,"integrity":"sha512-iM3HRbtprqIYwu+mFvrNr/ICBeDf6ncWQ1U7+QlswzWEkm/efjHpQ8qBFiaAyvl8VOszbJNStjBuQDCZijziBw==","signatures":[{"sig":"MEUCIQC5JF7G+LKU3PB7Xluxo0TBmzNK35BjEXKVmWp919vN3QIgRsqnpFCaCZjkdN6Fsw9vSpZsM0yUP5ASUSz/MxMtP/A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22217},"main":"./lib/xsadd.js","types":"./lib/index.d.ts","module":"./lib-esm/index.js","gitHead":"ecf372b9667bcc9f6c73ff087e81df98c0196873","scripts":{"tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","test":"npm run test-only && npm run eslint && npm run prettier && npm run check-types","clean":"rimraf lib lib-esm","eslint":"eslint src","prepack":"npm run tsc","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json","prettier":"prettier --check src","test-only":"vitest run --coverage","eslint-fix":"npm run eslint -- --fix","check-types":"tsc --noEmit","prettier-write":"prettier --write src"},"_npmUser":{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},"repository":{"url":"git+https://github.com/mljs/xsadd.git","type":"git"},"_npmVersion":"10.8.2","description":"JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.12.0","rimraf":"^6.0.1","tslint":"^5.20.1","vitest":"^2.1.3","prettier":"^3.3.3","typescript":"^5.6.3","@vitest/coverage-v8":"^2.1.3","tslint-config-prettier":"^1.18.0","eslint-config-cheminfo-typescript":"^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ml-xsadd_3.0.0_1729179828319_0.12770543192254102","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"ml-xsadd","version":"3.0.1","description":"JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator","main":"./lib/index.js","module":"./lib-esm/index.js","types":"./lib/index.d.ts","scripts":{"check-types":"tsc --noEmit","clean":"rimraf lib lib-esm","eslint":"eslint src","eslint-fix":"npm run eslint -- --fix","prepack":"npm run tsc","prettier":"prettier --check src","prettier-write":"prettier --write src","test":"npm run test-only && npm run eslint && npm run prettier && npm run check-types","test-only":"vitest run --coverage","tsc":"npm run clean && npm run tsc-cjs && npm run tsc-esm","tsc-cjs":"tsc --project tsconfig.cjs.json","tsc-esm":"tsc --project tsconfig.esm.json"},"repository":{"type":"git","url":"git+https://github.com/mljs/xsadd.git"},"keywords":["xsadd","xorshift","add","pseudo","random","number","generator","machine","learning"],"author":{"name":"Michaël Zasso"},"license":"MIT","bugs":{"url":"https://github.com/mljs/xsadd/issues"},"homepage":"https://github.com/mljs/xsadd#readme","devDependencies":{"@vitest/coverage-v8":"^2.1.3","eslint":"^9.12.0","eslint-config-cheminfo-typescript":"^16.0.0","prettier":"^3.3.3","rimraf":"^6.0.1","tslint":"^5.20.1","tslint-config-prettier":"^1.18.0","typescript":"^5.6.3","vitest":"^2.1.3"},"_id":"ml-xsadd@3.0.1","gitHead":"3fdef2a1da74b1718c2fcbe343581ba8f7987d70","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Fz2q6dwgzGM8wYKGArTUTZDGa4lQFA2Vi6orjGeTVRy22ZnQFKlJuwS9n8NRviqz1KHAHAzdKJwbnYhdo38uYg==","shasum":"0a959a246e784e906435e2b8d3960e95a0474e1e","tarball":"https://registry.npmjs.org/ml-xsadd/-/ml-xsadd-3.0.1.tgz","fileCount":22,"unpackedSize":22217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1anng8OmrPqqegbTPnFxuddSICj+U90V0BOtxu+/7LwIgKvVjpHZwU40rm73j4h5yoq/e74RRr5flIez5Rn2tL8U="}]},"_npmUser":{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"},"directories":{},"maintainers":[{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos+npm@protonmail.com"},{"name":"lpatiny","email":"luc@patiny.com"},{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ml-xsadd_3.0.1_1729238256353_0.7316115790813689"},"_hasShrinkwrap":false}},"time":{"created":"2015-07-23T09:00:56.765Z","modified":"2024-10-18T07:57:36.740Z","1.0.0":"2015-07-23T09:00:56.765Z","2.0.0":"2018-08-11T16:22:00.344Z","3.0.0":"2024-10-17T15:43:48.604Z","3.0.1":"2024-10-18T07:57:36.516Z"},"bugs":{"url":"https://github.com/mljs/xsadd/issues"},"author":{"name":"Michaël Zasso"},"license":"MIT","homepage":"https://github.com/mljs/xsadd#readme","keywords":["xsadd","xorshift","add","pseudo","random","number","generator","machine","learning"],"repository":{"type":"git","url":"git+https://github.com/mljs/xsadd.git"},"description":"JavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator","maintainers":[{"name":"stropitek","email":"kostro.d@gmail.com"},{"name":"targos","email":"targos+npm@protonmail.com"},{"name":"lpatiny","email":"luc@patiny.com"},{"name":"mljs-bot","email":"bot+npm-mljs@zakodium.com"}],"readme":"# ml-xsadd\n\n<h3 align=\"center\">\n  \n  <a href=\"https://www.zakodium.com\">\n   <img src=\"https://www.zakodium.com/brand/zakodium-logo-white.svg\" width=\"50\" alt=\"Zakodium logo\" />\n  </a>\n  \n  <p>\n    Maintained by <a href=\"https://www.zakodium.com\">Zakodium</a>\n  </p>\n  \n  [![NPM version][npm-image]][npm-url]\n  [![build status][ci-image]][ci-url]\n  [![npm download][download-image]][download-url]\n  \n</h3>\n\nJavaScript implementation of the XORSHIFT-ADD (XSadd) pseudo random number generator.\n\nBased on the C code from https://github.com/MersenneTwister-Lab/XSadd.\n\n## Installation\n\n`$ npm install ml-xsadd`\n\n## API\n\n```js\nconst { XSadd } = require(\"ml-xsadd\");\n\nconst gen = new XSadd();\nconst number = gen.getFloat();\n```\n\n### new XSadd([seed])\n\nCreates a new XSadd instance. Seed is an optional integer that defaults to `Date.now()`.\n\n### getUint32()\n\nReturns a 32-bit integer r (0 <= r < 2^32).\n\n### getFloat()\n\nReturns a floating point number r (0.0 <= r < 1.0).\n\n### random()\n\nLike `getFloat()` but dynamically bound to the `XSadd` instance.  \nYou can use this function externally, like `Math.random`:\n\n```js\nconst xsadd = new XSadd();\nconst random = xsadd.random;\nconst number = random();\n```\n\n### init(seed)\n\nReinitialize the generator with a new seed.\n\n## LICENSE\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/ml-xsadd.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/ml-xsadd\n[ci-image]: https://github.com/mljs/xsadd/workflows/Node.js%20CI/badge.svg?branch=main\n[ci-url]: https://github.com/mljs/xsadd/actions?query=workflow%3A%22Node.js+CI%22\n[download-image]: https://img.shields.io/npm/dm/ml-xsadd.svg?style=flat-square\n[download-url]: https://npmjs.org/package/ml-xsadd\n","readmeFilename":"README.md"}