{"_id":"@stdlib/random-array-tools-binary-factory","_rev":"5-7e54c44bf54de9d7610d33f39ea38bda","name":"@stdlib/random-array-tools-binary-factory","dist-tags":{"latest":"0.2.3"},"versions":{"0.1.0":{"name":"@stdlib/random-array-tools-binary-factory","version":"0.1.0","keywords":["stdlib","stdmath","mathematics","math","statistics","stats","tools","prng","rng","pseudorandom","random","rand","generator","factory","function","func","fcn","vector","array"],"author":{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"},"license":"Apache-2.0","_id":"@stdlib/random-array-tools-binary-factory@0.1.0","maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"contributors":[{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"}],"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"dist":{"shasum":"fa91f5df3106a5d7249436d7abedd08e8ee84905","tarball":"https://registry.npmjs.org/@stdlib/random-array-tools-binary-factory/-/random-array-tools-binary-factory-0.1.0.tgz","fileCount":9,"integrity":"sha512-2ktLeGq9CA4mDXKxYHOp4m9wxcBrNLhM9xan5CUgCZHpXFI5jraaUCmjsT6BDZGFFk3E+S+zbkRnLzHtdNBFDA==","signatures":[{"sig":"MEYCIQCCa8eK03Y1PABoWoHwVCcEc0eyMxXPx4ULU77CeQjH0gIhAOHWDIa7G/6WciX82tXLClv73jI7XAbNLu+XFZyA3woV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59592},"main":"./lib","types":"./docs/types","engines":{"npm":">2.7.0","node":">=0.10.0"},"funding":{"url":"https://opencollective.com/stdlib","type":"opencollective"},"gitHead":"593867739cdcc848feeba209824cf6f4afc68091","scripts":{"test":"make test","examples":"make examples","test-cov":"make test-cov","benchmark":"make benchmark"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"repository":{"url":"git://github.com/stdlib-js/random-array-tools-binary-factory.git","type":"git"},"_npmVersion":"8.19.4","description":"Create a factory function for generating pseudorandom values drawn from a binary PRNG.","directories":{"doc":"./docs","lib":"./lib","test":"./test","example":"./examples","benchmark":"./benchmark"},"_nodeVersion":"16.20.2","dependencies":{"@stdlib/utils-noop":"^0.1.1","@stdlib/string-format":"^0.1.1","@stdlib/assert-is-function":"^0.1.1","@stdlib/assert-is-method-in":"^0.1.1","@stdlib/assert-is-string-array":"^0.1.1","@stdlib/error-tools-fmtprodmsg":"^0.1.1","@stdlib/assert-has-own-property":"^0.1.1","@stdlib/utils-constant-function":"^0.1.1","@stdlib/random-array-tools-binary":"github:stdlib-js/random-array-tools-binary#main","@stdlib/array-base-assert-contains":"^0.1.0","@stdlib/random-array-tools-nullary":"github:stdlib-js/random-array-tools-nullary#main","@stdlib/utils-define-nonenumerable-read-only-accessor":"^0.1.1","@stdlib/utils-define-nonenumerable-read-only-property":"^0.1.1","@stdlib/utils-define-nonenumerable-read-write-accessor":"^0.1.1"},"_hasShrinkwrap":false,"devDependencies":{"tape":"git+https://github.com/kgryte/tape.git#fix/globby","tap-min":"git+https://github.com/Planeshifter/tap-min.git","istanbul":"^0.4.1","@stdlib/bench":"^0.2.1","@stdlib/array-zeros":"^0.1.0","@stdlib/array-dtypes":"^0.1.0","@stdlib/bench-harness":"^0.1.2","@stdlib/random-base-normal":"^0.1.0","@stdlib/random-base-arcsine":"^0.1.0","@stdlib/math-base-special-pow":"^0.1.0","@stdlib/math-base-assert-is-nan":"^0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/random-array-tools-binary-factory_0.1.0_1704721470928_0.7273729313773125","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@stdlib/random-array-tools-binary-factory","version":"0.2.0","keywords":["stdlib","stdmath","mathematics","math","statistics","stats","tools","prng","rng","pseudorandom","random","rand","generator","factory","function","func","fcn","vector","array"],"author":{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"},"license":"Apache-2.0","_id":"@stdlib/random-array-tools-binary-factory@0.2.0","maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"contributors":[{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"}],"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"dist":{"shasum":"8ec5d4640e67b8036fa8bbdbb74a84f820bb4c35","tarball":"https://registry.npmjs.org/@stdlib/random-array-tools-binary-factory/-/random-array-tools-binary-factory-0.2.0.tgz","fileCount":9,"integrity":"sha512-SG8SSGgNIoGOthHIlI2Mazz53s/8hQNJ0zXfkxeVw+jWuOSU0SuLLD6r4Imv+tslW5Hts/4KyhNetyYzODgg9Q==","signatures":[{"sig":"MEYCIQDzHUOxKxOUETR62BltabmcB8/mZzc7+qHnf5x8tGH6EAIhALASX7a3o/TWivzM+SXK1ErQQONDCibHxRVpvD22q8i/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59288},"main":"./lib","types":"./docs/types","engines":{"npm":">2.7.0","node":">=0.10.0"},"funding":{"url":"https://opencollective.com/stdlib","type":"opencollective"},"gitHead":"7137673f0798ef13d7c9fd7becf78e557b1d583b","scripts":{"test":"make test","examples":"make examples","test-cov":"make test-cov","benchmark":"make benchmark"},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"repository":{"url":"git://github.com/stdlib-js/random-array-tools-binary-factory.git","type":"git"},"_npmVersion":"8.19.4","description":"Create a factory function for generating pseudorandom values drawn from a binary PRNG.","directories":{"doc":"./docs","lib":"./lib","test":"./test","example":"./examples","benchmark":"./benchmark"},"_nodeVersion":"16.20.2","dependencies":{"@stdlib/utils-noop":"^0.2.0","@stdlib/string-format":"^0.2.0","@stdlib/assert-is-function":"^0.2.0","@stdlib/assert-is-method-in":"^0.2.0","@stdlib/assert-is-string-array":"^0.2.0","@stdlib/error-tools-fmtprodmsg":"^0.2.0","@stdlib/assert-has-own-property":"^0.2.0","@stdlib/utils-constant-function":"^0.2.0","@stdlib/random-array-tools-binary":"^0.2.0","@stdlib/array-base-assert-contains":"^0.2.0","@stdlib/random-array-tools-nullary":"^0.2.0","@stdlib/utils-define-nonenumerable-read-only-accessor":"^0.2.0","@stdlib/utils-define-nonenumerable-read-only-property":"^0.2.0","@stdlib/utils-define-nonenumerable-read-write-accessor":"^0.2.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"git+https://github.com/kgryte/tape.git#fix/globby","tap-min":"git+https://github.com/Planeshifter/tap-min.git","istanbul":"^0.4.1","@stdlib/bench":"^0.3.1","@stdlib/array-zeros":"^0.1.0","@stdlib/array-dtypes":"^0.2.0","@stdlib/bench-harness":"^0.2.0","@stdlib/random-base-normal":"^0.1.0","@stdlib/random-base-arcsine":"^0.1.0","@stdlib/math-base-special-pow":"^0.2.0","@stdlib/math-base-assert-is-nan":"^0.2.0"},"_npmOperationalInternal":{"tmp":"tmp/random-array-tools-binary-factory_0.2.0_1707955616396_0.2296502129688811","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@stdlib/random-array-tools-binary-factory","version":"0.2.1","keywords":["stdlib","stdmath","mathematics","math","statistics","stats","tools","prng","rng","pseudorandom","random","rand","generator","factory","function","func","fcn","vector","array"],"author":{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"},"license":"Apache-2.0","_id":"@stdlib/random-array-tools-binary-factory@0.2.1","maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"contributors":[{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"}],"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"dist":{"shasum":"80ba998b2a351bde235ca8b340d5db1bec5ef319","tarball":"https://registry.npmjs.org/@stdlib/random-array-tools-binary-factory/-/random-array-tools-binary-factory-0.2.1.tgz","fileCount":9,"integrity":"sha512-JrPZerJCguar9F5yNBzpCM6k/wWHPbOyU5WpcmkBlvGA48hcYHEHcMWlUUh44USOBkn4/CUv367MS0QpGnrSww==","signatures":[{"sig":"MEUCIQCOR4rlR9EnI3UuTmyzIF2USiwYLmFMSZpGfcGiFl1V1AIgAy2LpEc/dEQqqcpt2gNtMntAINoZhVQC/rtkMLRKKzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58610},"main":"./lib","types":"./docs/types","engines":{"npm":">2.7.0","node":">=0.10.0"},"funding":{"url":"https://opencollective.com/stdlib","type":"opencollective"},"gitHead":"96944aeaaa31205528b593a0370625e1a395ffa0","scripts":{},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"repository":{"url":"git://github.com/stdlib-js/random-array-tools-binary-factory.git","type":"git"},"_npmVersion":"8.19.4","description":"Create a factory function for generating pseudorandom values drawn from a binary PRNG.","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"_nodeVersion":"16.20.2","dependencies":{"@stdlib/utils-noop":"^0.2.1","@stdlib/string-format":"^0.2.1","@stdlib/assert-is-function":"^0.2.1","@stdlib/assert-is-method-in":"^0.2.1","@stdlib/assert-is-string-array":"^0.2.1","@stdlib/error-tools-fmtprodmsg":"^0.2.1","@stdlib/assert-has-own-property":"^0.2.1","@stdlib/utils-constant-function":"^0.2.1","@stdlib/random-array-tools-binary":"^0.2.1","@stdlib/array-base-assert-contains":"^0.2.1","@stdlib/random-array-tools-nullary":"^0.2.1","@stdlib/utils-define-nonenumerable-read-only-accessor":"^0.2.2","@stdlib/utils-define-nonenumerable-read-only-property":"^0.2.1","@stdlib/utils-define-nonenumerable-read-write-accessor":"^0.2.1"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/random-array-tools-binary-factory_0.2.1_1708889184870_0.3314851725445591","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"@stdlib/random-array-tools-binary-factory","version":"0.2.2","keywords":["stdlib","stdmath","mathematics","math","statistics","stats","tools","prng","rng","pseudorandom","random","rand","generator","factory","function","func","fcn","vector","array"],"author":{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"},"license":"Apache-2.0","_id":"@stdlib/random-array-tools-binary-factory@0.2.2","maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"contributors":[{"url":"https://github.com/stdlib-js/stdlib/graphs/contributors","name":"The Stdlib Authors"}],"homepage":"https://stdlib.io","bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"dist":{"shasum":"a2a4f45a825974d34fd790923da9e219372b5405","tarball":"https://registry.npmjs.org/@stdlib/random-array-tools-binary-factory/-/random-array-tools-binary-factory-0.2.2.tgz","fileCount":9,"integrity":"sha512-qagcA1a5zQx/Z2FQLsELY7BgFeP1IHb7K45bgdyf2iHYkbTV0Jhjx5sQ9/f3DgOyBRxTWDo88OG7lTgKBbd0Fw==","signatures":[{"sig":"MEUCICwTdOm/VEcWDhPuROn15M9vcOj4Tu89kN0RtjMMnw9pAiEAxWCOoiql1Hal4n/l3hKNi0fVcC0HbdLIw+rStkuPsCU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58610},"main":"./lib","types":"./docs/types","engines":{"npm":">2.7.0","node":">=0.10.0"},"funding":{"url":"https://opencollective.com/stdlib","type":"opencollective"},"gitHead":"dc626ba79482fcccb929e07a897874472b58ae05","scripts":{},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"repository":{"url":"git://github.com/stdlib-js/random-array-tools-binary-factory.git","type":"git"},"_npmVersion":"8.19.4","description":"Create a factory function for generating pseudorandom values drawn from a binary PRNG.","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"_nodeVersion":"16.20.2","dependencies":{"@stdlib/utils-noop":"^0.2.2","@stdlib/string-format":"^0.2.2","@stdlib/assert-is-function":"^0.2.2","@stdlib/assert-is-method-in":"^0.2.2","@stdlib/assert-is-string-array":"^0.2.2","@stdlib/error-tools-fmtprodmsg":"^0.2.2","@stdlib/assert-has-own-property":"^0.2.2","@stdlib/utils-constant-function":"^0.2.2","@stdlib/random-array-tools-binary":"^0.2.1","@stdlib/array-base-assert-contains":"^0.2.1","@stdlib/random-array-tools-nullary":"^0.2.1","@stdlib/utils-define-nonenumerable-read-only-accessor":"^0.2.3","@stdlib/utils-define-nonenumerable-read-only-property":"^0.2.2","@stdlib/utils-define-nonenumerable-read-write-accessor":"^0.2.2"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/random-array-tools-binary-factory_0.2.2_1722222590795_0.4227066337543326","host":"s3://npm-registry-packages"}},"0.2.3":{"name":"@stdlib/random-array-tools-binary-factory","version":"0.2.3","description":"Create a factory function for generating pseudorandom values drawn from a binary PRNG.","license":"Apache-2.0","author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"main":"./lib","directories":{"doc":"./docs","lib":"./lib","dist":"./dist"},"types":"./docs/types","scripts":{},"homepage":"https://stdlib.io","repository":{"type":"git","url":"git://github.com/stdlib-js/random-array-tools-binary-factory.git"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"dependencies":{"@stdlib/array-base-assert-contains":"^0.2.2","@stdlib/assert-has-own-property":"^0.2.3","@stdlib/assert-is-function":"^0.2.3","@stdlib/assert-is-method-in":"^0.2.3","@stdlib/assert-is-string-array":"^0.2.3","@stdlib/random-array-tools-binary":"^0.2.2","@stdlib/random-array-tools-nullary":"^0.2.2","@stdlib/string-format":"^0.2.3","@stdlib/utils-constant-function":"^0.2.3","@stdlib/utils-define-nonenumerable-read-only-accessor":"^0.2.4","@stdlib/utils-define-nonenumerable-read-only-property":"^0.2.3","@stdlib/utils-define-nonenumerable-read-write-accessor":"^0.2.3","@stdlib/utils-noop":"^0.2.3","@stdlib/error-tools-fmtprodmsg":"^0.2.3"},"devDependencies":{},"engines":{"node":">=0.10.0","npm":">2.7.0"},"os":["aix","darwin","freebsd","linux","macos","openbsd","sunos","win32","windows"],"keywords":["stdlib","stdmath","mathematics","math","statistics","stats","tools","prng","rng","pseudorandom","random","rand","generator","factory","function","func","fcn","vector","array"],"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"_id":"@stdlib/random-array-tools-binary-factory@0.2.3","gitHead":"65ac870bcc9363ee25cdde72514d9e0783b5395e","_nodeVersion":"20.20.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-JOf3ZvrAVHnKZlRhhwyLIqovFQYZbe7ge7krD4WATBP9cgAnggrAcj0XzxduDGAW9ECce/9IKCc2Bxsp+o+pLg==","shasum":"34517ec3f8e57c717ddf7e561e26c6a0ce1f0308","tarball":"https://registry.npmjs.org/@stdlib/random-array-tools-binary-factory/-/random-array-tools-binary-factory-0.2.3.tgz","fileCount":9,"unpackedSize":58587,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCbma0enEZqyXBs7kcSTuJM8U1/YhSvqisObs6pIDoJlAIgMkQ3gkd3zAgIUW22hjtRMZUh6EfmAw4u3fwAHRDX+L4="}]},"_npmUser":{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},"maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/random-array-tools-binary-factory_0.2.3_1770573272134_0.8320240887970867"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-08T13:44:30.800Z","modified":"2026-02-08T17:54:32.453Z","0.1.0":"2024-01-08T13:44:31.081Z","0.2.0":"2024-02-15T00:06:56.594Z","0.2.1":"2024-02-25T19:26:25.063Z","0.2.2":"2024-07-29T03:09:50.976Z","0.2.3":"2026-02-08T17:54:32.295Z"},"bugs":{"url":"https://github.com/stdlib-js/stdlib/issues"},"author":{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"},"license":"Apache-2.0","homepage":"https://stdlib.io","keywords":["stdlib","stdmath","mathematics","math","statistics","stats","tools","prng","rng","pseudorandom","random","rand","generator","factory","function","func","fcn","vector","array"],"repository":{"type":"git","url":"git://github.com/stdlib-js/random-array-tools-binary-factory.git"},"description":"Create a factory function for generating pseudorandom values drawn from a binary PRNG.","contributors":[{"name":"The Stdlib Authors","url":"https://github.com/stdlib-js/stdlib/graphs/contributors"}],"maintainers":[{"name":"stdlib-bot","email":"kgryte+stdlibbot@gmail.com"},{"name":"kgryte","email":"kgryte@gmail.com"},{"name":"planeshifter","email":"pgb@andrew.cmu.edu"},{"name":"rreusser","email":"rsreusser@gmail.com"}],"readme":"<!--\n\n@license Apache-2.0\n\nCopyright (c) 2024 The Stdlib Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n-->\n\n\n<details>\n  <summary>\n    About stdlib...\n  </summary>\n  <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>\n  <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>\n  <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>\n  <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href=\"https://github.com/stdlib-js/stdlib\">GitHub</a>, and please consider <a href=\"https://opencollective.com/stdlib\">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>\n</details>\n\n# binaryFactory\n\n[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->\n\n> Create a factory function for generating pseudorandom values drawn from a binary PRNG.\n\n<section class=\"installation\">\n\n## Installation\n\n```bash\nnpm install @stdlib/random-array-tools-binary-factory\n```\n\n</section>\n\n<section class=\"usage\">\n\n## Usage\n\n```javascript\nvar binaryFactory = require( '@stdlib/random-array-tools-binary-factory' );\n```\n\n#### binaryFactory( prng, dtypes, dtype )\n\nReturns a factory function for generating pseudorandom values drawn from a binary PRNG.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, 'float64' );\n// returns <Function>\n```\n\nThe function has the following parameters:\n\n-   **prng**: binary pseudorandom number generator.\n-   **dtypes**: list of supported output data types.\n-   **dtype**: default output array data type.\n\n* * *\n\n#### factory( \\[param1, param2, ]\\[options] )\n\nReturns a function for generating pseudorandom values drawn from a binary PRNG.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n```\n\nThe function has the following parameters:\n\n-   **param1**: first PRNG parameter.\n-   **param2**: second PRNG parameter.\n-   **options**: function options.\n\nThe function supports the following options:\n\n-   **prng**: pseudorandom number generator which generates uniformly distributed pseudorandom numbers.\n-   **seed**: pseudorandom value generator seed.\n-   **state**: pseudorandom value generator state.\n-   **copy**: boolean indicating whether to copy a provided pseudorandom value generator state.\n-   **dtype**: default output array data type. Setting this option overrides the default output array data type provided to the parent function.\n\nIf provided PRNG parameters, the function returns a partially applied function for creating arrays, which can be useful when wanting to pass around a parameterized function for array creation.\n\n* * *\n\n### Full Arity\n\n#### random( len, param1, param2\\[, options] )\n\nReturns an array of pseudorandom values drawn from a binary PRNG.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar v = random( 10, 2.0, 5.0 );\n// returns <Float64Array>\n```\n\nThe function has the following parameters:\n\n-   **len**: output array length.\n-   **param1**: first PRNG parameter.\n-   **param2**: second PRNG parameter.\n-   **options**: function options.\n\nThe function accepts the following options:\n\n-   **dtype**: output array data type. Setting this option overrides the default output array data type.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar v = random( 10, 2.0, 5.0, {\n    'dtype': 'float32'\n});\n// returns <Float32Array>\n```\n\n#### random.assign( param1, param2, out )\n\nFills an array with pseudorandom values drawn from a binary PRNG.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\nvar zeros = require( '@stdlib/array-zeros' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar out = zeros( 10, 'float64' );\n// returns <Float64Array>\n\nvar v = random.assign( 2.0, 5.0, out );\n// returns <Float64Array>\n\nvar bool = ( out === v );\n// returns true\n```\n\nThe method has the following parameters:\n\n-   **param1**: first PRNG parameter.\n-   **param2**: second PRNG parameter.\n-   **out**: output array.\n\n### Partial Application\n\n#### random( len\\[, options] )\n\nReturns an array of pseudorandom values drawn from a binary PRNG.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory( 2.0, 5.0 );\n// returns <Function>\n\nvar v = random( 10 );\n// returns <Float64Array>\n\nv = random( 10 );\n// returns <Float64Array>\n```\n\nThe function has the following parameters:\n\n-   **len**: output array length.\n-   **options**: function options.\n\nThe function accepts the following options:\n\n-   **dtype**: output array data type. Setting this option overrides the default output array data type.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory( 2.0, 5.0 );\n// returns <Function>\n\nvar v = random( 10, {\n    'dtype': 'float32'\n});\n// returns <Float32Array>\n\nv = random( 10, {\n    'dtype': 'generic'\n});\n// returns [...]\n```\n\n#### random.assign( out )\n\nFills an array with pseudorandom values drawn from a binary PRNG.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\nvar zeros = require( '@stdlib/array-zeros' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory( 2.0, 5.0 );\n// returns <Function>\n\nvar out = zeros( 10, 'float64' );\n// returns <Float64Array>\n\nvar v = random.assign( out );\n// returns <Float64Array>\n\nvar bool = ( out === v );\n// returns true\n```\n\nThe method has the following parameters:\n\n-   **out**: output array.\n\n* * *\n\n#### random.PRNG\n\nThe underlying pseudorandom number generator.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar prng = random.PRNG;\n// returns <Function>\n```\n\n#### random.seed\n\nThe value used to seed the underlying pseudorandom number generator.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar seed = random.seed;\n// returns <Uint32Array>\n```\n\nIf the `factory` function is provided a PRNG for uniformly distributed numbers, the associated property value on the returned function is `null`.\n\n```javascript\nvar minstd = require( '@stdlib/random-base-minstd-shuffle' ).normalized;\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory({\n    'prng': minstd\n});\n// returns <Function>\n\nvar seed = random.seed;\n// returns null\n```\n\n#### random.seedLength\n\nLength of underlying pseudorandom number generator seed.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar len = random.seedLength;\n// returns <number>\n```\n\nIf the `factory` function is provided a PRNG for uniformly distributed numbers, the associated property value on the returned function is `null`.\n\n```javascript\nvar minstd = require( '@stdlib/random-base-minstd-shuffle' ).normalized;\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory({\n    'prng': minstd\n});\n// returns <Function>\n\nvar len = random.seedLength;\n// returns null\n```\n\n#### random.state\n\nWritable property for getting and setting the underlying pseudorandom number generator state.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar state = random.state;\n// returns <Uint32Array>\n```\n\nIf the `factory` function is provided a PRNG for uniformly distributed numbers, the associated property value on the returned function is `null`.\n\n```javascript\nvar minstd = require( '@stdlib/random-base-minstd-shuffle' ).normalized;\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory({\n    'prng': minstd\n});\n// returns <Function>\n\nvar state = random.state;\n// returns null\n```\n\n#### random.stateLength\n\nLength of underlying pseudorandom number generator state.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar len = random.stateLength;\n// returns <number>\n```\n\nIf the `factory` function is provided a PRNG for uniformly distributed numbers, the associated property value on the returned function is `null`.\n\n```javascript\nvar minstd = require( '@stdlib/random-base-minstd-shuffle' ).normalized;\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory({\n    'prng': minstd\n});\n// returns <Function>\n\nvar len = random.stateLength;\n// returns null\n```\n\n#### random.byteLength\n\nSize (in bytes) of underlying pseudorandom number generator state.\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar sz = random.byteLength;\n// returns <number>\n```\n\nIf the `factory` function is provided a PRNG for uniformly distributed numbers, the associated property value on the returned function is `null`.\n\n```javascript\nvar minstd = require( '@stdlib/random-base-minstd-shuffle' ).normalized;\nvar arcsine = require( '@stdlib/random-base-arcsine' );\n\nvar dtypes = [ 'float64', 'float32', 'generic' ];\n\nvar factory = binaryFactory( arcsine, dtypes, dtypes[ 0 ] );\n// returns <Function>\n\nvar random = factory({\n    'prng': minstd\n});\n// returns <Function>\n\nvar sz = random.byteLength;\n// returns null\n```\n\n</section>\n\n<!-- /.usage -->\n\n<section class=\"notes\">\n\n</section>\n\n<!-- /.notes -->\n\n<section class=\"examples\">\n\n* * *\n\n## Examples\n\n<!-- eslint no-undef: \"error\" -->\n\n```javascript\nvar arcsine = require( '@stdlib/random-base-arcsine' );\nvar dtypes = require( '@stdlib/array-dtypes' );\nvar binaryFactory = require( '@stdlib/random-array-tools-binary-factory' );\n\nvar dt = dtypes( 'real_floating_point_and_generic' );\n\nvar factory = binaryFactory( arcsine, dt, 'float64' );\n// returns <Function>\n\nvar random = factory();\n// returns <Function>\n\nvar x = random( 10, 2.0, 5.0 );\n// returns <Float64Array>\n\nx = random( 10, 2.0, 5.0, {\n    'dtype': 'float32'\n});\n// returns <Float32Array>\n\nx = random( 10, 2.0, 5.0, {\n    'dtype': 'generic'\n});\n// returns [...]\n```\n\n</section>\n\n<!-- /.examples -->\n\n<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->\n\n<section class=\"related\">\n\n</section>\n\n<!-- /.related -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n\n<section class=\"main-repo\" >\n\n* * *\n\n## Notice\n\nThis package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.\n\nFor more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].\n\n#### Community\n\n[![Chat][chat-image]][chat-url]\n\n---\n\n## License\n\nSee [LICENSE][stdlib-license].\n\n\n## Copyright\n\nCopyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].\n\n</section>\n\n<!-- /.stdlib -->\n\n<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->\n\n<section class=\"links\">\n\n[npm-image]: http://img.shields.io/npm/v/@stdlib/random-array-tools-binary-factory.svg\n[npm-url]: https://npmjs.org/package/@stdlib/random-array-tools-binary-factory\n\n[test-image]: https://github.com/stdlib-js/random-array-tools-binary-factory/actions/workflows/test.yml/badge.svg?branch=v0.2.3\n[test-url]: https://github.com/stdlib-js/random-array-tools-binary-factory/actions/workflows/test.yml?query=branch:v0.2.3\n\n[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-array-tools-binary-factory/main.svg\n[coverage-url]: https://codecov.io/github/stdlib-js/random-array-tools-binary-factory?branch=main\n\n<!--\n\n[dependencies-image]: https://img.shields.io/david/stdlib-js/random-array-tools-binary-factory.svg\n[dependencies-url]: https://david-dm.org/stdlib-js/random-array-tools-binary-factory/main\n\n-->\n\n[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg\n[chat-url]: https://stdlib.zulipchat.com\n\n[stdlib]: https://github.com/stdlib-js/stdlib\n\n[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors\n\n[umd]: https://github.com/umdjs/umd\n[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules\n\n[deno-url]: https://github.com/stdlib-js/random-array-tools-binary-factory/tree/deno\n[deno-readme]: https://github.com/stdlib-js/random-array-tools-binary-factory/blob/deno/README.md\n[umd-url]: https://github.com/stdlib-js/random-array-tools-binary-factory/tree/umd\n[umd-readme]: https://github.com/stdlib-js/random-array-tools-binary-factory/blob/umd/README.md\n[esm-url]: https://github.com/stdlib-js/random-array-tools-binary-factory/tree/esm\n[esm-readme]: https://github.com/stdlib-js/random-array-tools-binary-factory/blob/esm/README.md\n[branches-url]: https://github.com/stdlib-js/random-array-tools-binary-factory/blob/main/branches.md\n\n[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/random-array-tools-binary-factory/main/LICENSE\n\n</section>\n\n<!-- /.links -->\n","readmeFilename":"README.md"}