{"id":41271266,"url":"https://github.com/wataridori/bias-random","last_synced_at":"2026-01-23T02:24:52.696Z","repository":{"id":28912452,"uuid":"32437387","full_name":"wataridori/bias-random","owner":"wataridori","description":"Random elements with specific bias","archived":false,"fork":false,"pushed_at":"2016-02-05T05:59:37.000Z","size":4,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T11:16:09.577Z","etag":null,"topics":["bias-random","php","random"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wataridori.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-18T04:15:37.000Z","updated_at":"2019-12-06T09:38:47.000Z","dependencies_parsed_at":"2022-08-02T11:50:14.491Z","dependency_job_id":null,"html_url":"https://github.com/wataridori/bias-random","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wataridori/bias-random","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fbias-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fbias-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fbias-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fbias-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wataridori","download_url":"https://codeload.github.com/wataridori/bias-random/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wataridori%2Fbias-random/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28678235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"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"}},"keywords":["bias-random","php","random"],"created_at":"2026-01-23T02:24:52.185Z","updated_at":"2026-01-23T02:24:52.686Z","avatar_url":"https://github.com/wataridori.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"BiasRandom for PHP\n==========\n[![StyleCI](https://styleci.io/repos/32437387/shield)](https://styleci.io/repos/32437387)\n[![Build Status](https://travis-ci.org/wataridori/bias-random.svg)](https://travis-ci.org/wataridori/bias-random)\n[![Latest Stable Version](https://poser.pugx.org/wataridori/bias-random/v/stable.svg)](https://packagist.org/packages/wataridori/bias-random)\n[![Total Downloads](https://poser.pugx.org/wataridori/bias-random/downloads.svg)](https://packagist.org/packages/wataridori/bias-random)\n[![Latest Unstable Version](https://poser.pugx.org/wataridori/bias-random/v/unstable.svg)](https://packagist.org/packages/wataridori/bias-random)\n[![License](https://poser.pugx.org/wataridori/bias-random/license.svg)](https://packagist.org/packages/wataridori/bias-random)\n\n## Requirement\n* PHP \u003e= 5.4\n\n## Install\n\nYou can install and manage BiasRandom by using `Composer`\n\n```\ncomposer require wataridori/bias-random\n```\n\nOr add `wataridori/bias-random` into the require section of your `composer.json` file then run `composer update`\n\n## Usage\n\n```php\n$biasRandom = new wataridori/BiasRandom/BiasRandom();\n$data = [\n    'wataridori' =\u003e 10,\n];\n$biasRandom-\u003esetData($data);\n$biasRandom-\u003eaddElement('Tran', 20);\n$biasRandom-\u003eaddElement('Duc', 30);\n$biasRandom-\u003eaddElement('Thang', 40);\n\n// Random one element with weight.\n$biasRandom-\u003erandom();\n\n// Random two elements\n$biasRandom-\u003erandom(2);\n```\n\n## Test\nJust run `phpunit` to start test.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwataridori%2Fbias-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwataridori%2Fbias-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwataridori%2Fbias-random/lists"}