{"id":8735390,"name":"@stdlib/random-array-bernoulli","ecosystem":"npm","description":"Create an array containing pseudorandom numbers drawn from a Bernoulli distribution.","homepage":"https://stdlib.io","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/stdlib-js/random-array-bernoulli","keywords_array":["stdlib","stdmath","mathematics","math","statistics","stats","prng","rng","pseudorandom","random","rand","bernoulli","discrete","generator","seed","seedable","array","vector"],"namespace":"stdlib","versions_count":4,"first_release_published_at":"2024-01-08T14:03:10.205Z","latest_release_published_at":"2026-02-08T20:34:42.083Z","latest_release_number":"0.2.2","last_synced_at":"2026-03-07T04:47:01.235Z","created_at":"2024-01-08T18:34:35.578Z","updated_at":"2026-03-07T04:49:17.013Z","registry_url":"https://www.npmjs.com/package/@stdlib/random-array-bernoulli","install_command":"npm install @stdlib/random-array-bernoulli","documentation_url":null,"metadata":{"funding":{"type":"opencollective","url":"https://opencollective.com/stdlib"},"dist-tags":{"latest":"0.2.2"}},"repo_metadata":{"id":215700712,"uuid":"739586788","full_name":"stdlib-js/random-array-bernoulli","owner":"stdlib-js","description":"Create an array containing pseudorandom numbers drawn from a Bernoulli distribution.","archived":false,"fork":false,"pushed_at":"2025-09-15T00:46:43.000Z","size":997,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-15T02:38:03.053Z","etag":null,"topics":["array","bernoulli","discrete","generator","javascript","math","mathematics","node","node-js","nodejs","prng","pseudorandom","rand","random","rng","seed","seedable","statistics","stats","stdlib"],"latest_commit_sha":null,"homepage":"https://github.com/stdlib-js/stdlib","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdlib-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"created_at":"2024-01-05T23:47:04.000Z","updated_at":"2025-09-15T00:39:03.000Z","dependencies_parsed_at":"2024-03-01T07:31:40.183Z","dependency_job_id":"8dcdfa70-3653-404e-bd9c-9997586de90b","html_url":"https://github.com/stdlib-js/random-array-bernoulli","commit_stats":null,"previous_names":["stdlib-js/random-array-bernoulli"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279483845,"owners_count":26178146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-18T02:00:06.492Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"stdlib-js","name":"stdlib","uuid":"17805691","kind":"organization","description":"Standard library for JavaScript.","email":null,"website":"https://stdlib.io","location":null,"twitter":"stdlibjs","company":null,"icon_url":"https://avatars.githubusercontent.com/u/17805691?v=4","repositories_count":3692,"last_synced_at":"2024-05-01T09:30:33.148Z","metadata":{"has_sponsors_listing":true,"funding":{"github":["stdlib-js"],"open_collective":"stdlib","tidelift":"npm/@stdlib/stdlib"}},"html_url":"https://github.com/stdlib-js","funding_links":["https://github.com/sponsors/stdlib-js","https://opencollective.com/stdlib","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"total_stars":9686,"followers":99,"following":0,"created_at":"2022-11-02T16:51:14.990Z","updated_at":"2024-05-01T09:37:07.346Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdlib-js/repositories"},"tags":[{"name":"v0.2.1-esm","sha":"a0dd5258b5581458b57eeae27b8f80ad956c43d7","kind":"tag","published_at":"2024-02-25T22:25:24.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.1-esm","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.1-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.1-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1-esm/manifests"},{"name":"v0.2.1-umd","sha":"e1fedf64627f0371754e09e41d3a0dcb9fb50e2e","kind":"tag","published_at":"2024-02-25T22:25:23.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.1-umd","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.1-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.1-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1-umd/manifests"},{"name":"v0.2.1-deno","sha":"bbe4fbc0a3e03267efcdb3912c5106bddd61ff64","kind":"tag","published_at":"2024-02-25T22:25:21.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.1-deno","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.1-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.1-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1-deno/manifests"},{"name":"v0.2.1","sha":"853aaa49a5f863f9a6928fcf597e14511a8a8490","kind":"commit","published_at":"2024-02-25T19:57:56.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.1","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.1/manifests"},{"name":"v0.2.0-esm","sha":"37ce4191584a8aece58def58efda5e5ee9e2fa53","kind":"tag","published_at":"2024-02-15T06:46:21.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.0-esm","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.0-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.0-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0-esm/manifests"},{"name":"v0.2.0-umd","sha":"b6de0eab4f08c0614b6e639373904174471982f5","kind":"tag","published_at":"2024-02-15T06:46:20.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.0-umd","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.0-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.0-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0-umd/manifests"},{"name":"v0.2.0-deno","sha":"9463ed59e0f71e329b8d9402afdd13aa3d8aec3f","kind":"tag","published_at":"2024-02-15T06:46:18.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.0-deno","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.0-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.0-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0-deno/manifests"},{"name":"v0.2.0","sha":"496539cff54a1cadbaec191b8613ed0430f84b29","kind":"commit","published_at":"2024-02-15T00:43:13.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.2.0","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.2.0/manifests"},{"name":"v0.1.0-esm","sha":"3cea4e402d2428f99007156d8ab7e36381a6284d","kind":"tag","published_at":"2024-01-08T14:05:20.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.1.0-esm","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.1.0-esm","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.1.0-esm","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0-esm","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0-esm/manifests"},{"name":"v0.1.0-umd","sha":"34b8f6223c955423f70cf5904ec6da987d8e0e58","kind":"tag","published_at":"2024-01-08T14:05:19.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.1.0-umd","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.1.0-umd","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.1.0-umd","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0-umd","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0-umd/manifests"},{"name":"v0.1.0-deno","sha":"5e79a7c9e11ada2a3cd1b57e7dd87d5823027a9a","kind":"tag","published_at":"2024-01-08T14:05:17.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.1.0-deno","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.1.0-deno","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.1.0-deno","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0-deno","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0-deno/manifests"},{"name":"v0.1.0","sha":"ac2627494a65d01352906e4fd528abd685c7798b","kind":"commit","published_at":"2024-01-08T14:03:08.000Z","download_url":"https://codeload.github.com/stdlib-js/random-array-bernoulli/tar.gz/v0.1.0","html_url":"https://github.com/stdlib-js/random-array-bernoulli/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/stdlib-js/random-array-bernoulli@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-03-07T04:49:16.986Z","dependent_packages_count":0,"downloads":98,"downloads_period":"last-month","dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":33.87848500365216,"dependent_packages_count":48.28398638269214,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":41.08123569317215},"purl":"pkg:npm/%40stdlib/random-array-bernoulli","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/@stdlib/random-array-bernoulli","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/@stdlib/random-array-bernoulli","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/@stdlib/random-array-bernoulli/dependencies","status":null,"funding_links":["https://opencollective.com/stdlib","https://github.com/sponsors/stdlib-js","https://tidelift.com/funding/github/npm/@stdlib/stdlib"],"critical":null,"issue_metadata":{"last_synced_at":"2025-05-12T21:07:11.015Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdlib-js%2Frandom-array-bernoulli/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Frandom-array-bernoulli/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Frandom-array-bernoulli/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Frandom-array-bernoulli/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Frandom-array-bernoulli/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/@stdlib%2Frandom-array-bernoulli/codemeta","maintainers":[{"uuid":"planeshifter","login":"planeshifter","name":null,"email":"pgb@andrew.cmu.edu","url":null,"packages_count":5862,"html_url":"https://www.npmjs.com/~planeshifter","role":null,"created_at":"2024-01-10T11:56:25.455Z","updated_at":"2024-01-10T11:56:25.455Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/planeshifter/packages"},{"uuid":"rreusser","login":"rreusser","name":null,"email":"rsreusser@gmail.com","url":null,"packages_count":5820,"html_url":"https://www.npmjs.com/~rreusser","role":null,"created_at":"2024-01-10T11:56:25.493Z","updated_at":"2024-01-10T11:56:25.493Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/rreusser/packages"},{"uuid":"stdlib-bot","login":"stdlib-bot","name":null,"email":"kgryte+stdlibbot@gmail.com","url":null,"packages_count":5553,"html_url":"https://www.npmjs.com/~stdlib-bot","role":null,"created_at":"2024-01-10T11:56:25.379Z","updated_at":"2024-01-10T11:56:25.379Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/stdlib-bot/packages"},{"uuid":"kgryte","login":"kgryte","name":null,"email":"kgryte@gmail.com","url":null,"packages_count":6352,"html_url":"https://www.npmjs.com/~kgryte","role":null,"created_at":"2024-01-10T11:56:25.417Z","updated_at":"2024-01-10T11:56:25.417Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/kgryte/packages"}]}