{"id":18323617,"url":"https://github.com/randplus/randplus","last_synced_at":"2026-01-31T08:31:28.242Z","repository":{"id":258241044,"uuid":"805122715","full_name":"randplus/randplus","owner":"randplus","description":"A package that add functions for random.","archived":false,"fork":false,"pushed_at":"2025-08-01T14:32:07.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T12:57:34.087Z","etag":null,"topics":["addon","extension","nodejs","npm","plus","random"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/randplus","language":"JavaScript","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/randplus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-23T23:39:26.000Z","updated_at":"2025-08-01T14:32:11.000Z","dependencies_parsed_at":"2024-10-28T09:04:12.721Z","dependency_job_id":"bd7fa412-3e20-46ef-8149-5356198be900","html_url":"https://github.com/randplus/randplus","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"89b1e87c763d6e624ddc852483550226803c365e"},"previous_names":["randplus/randplus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/randplus/randplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randplus%2Frandplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randplus%2Frandplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randplus%2Frandplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randplus%2Frandplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/randplus","download_url":"https://codeload.github.com/randplus/randplus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/randplus%2Frandplus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28935402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T07:49:44.436Z","status":"ssl_error","status_checked_at":"2026-01-31T07:49:34.274Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["addon","extension","nodejs","npm","plus","random"],"created_at":"2024-11-05T18:28:53.418Z","updated_at":"2026-01-31T08:31:28.233Z","avatar_url":"https://github.com/randplus.png","language":"JavaScript","readme":"# randplus\nA package that add functions for random.\n\n###### Teams\n\u003cimg src=\"https://raw.githubusercontent.com/randplus/docs/main/img/randplus.png\" alt=\"OTONEKO.CAT\" style=\"display: block; width: auto; height: 100px;\"/\u003e\n\n## Usage\n```js\nconst random = require('randplus');\n\nconsole.log(random.random()); // 0 ~ 1 (!= 1)\nconsole.log(random.random(true)); // 0 ~ 1 (== 1)\nconsole.log(random.number(1, 10)); // 1 ~ 10\nconsole.log(random.number(1, 10, false)); // 1 ~ 10 (!= 10)\nconsole.log(random.integer(1, 10)); // 1 ~ 10\nconsole.log(random.integer(1, 10, false)); // 1 ~ 10 (!= 10)\nconsole.log(random.boolean()); // true or false\nconsole.log(random.array(['Hello', 'World!'])); // 'Hello' or 'World!'\nconsole.log(random.buffer()); // \u003cBuffer \u003e\nconsole.log(random.buffer(16)); // '\u003cBuffer 26 bc 62 84 b0 94 5e c5 1a d5 fd 69 6f d3 78 b1\u003e'\nconsole.log(random.string(3)); // '000' ~ 'ZZZ'\nconsole.log(random.string('abc', 3)); // 'aaa' ~ 'ccc'\nconsole.log(random.string(['01', '02', '03'], 3)); // '010101' ~ '030303'\nconsole.log(random.shuffle('abcdef')); // 'cfeadb'\nconsole.log(random.shuffle(['a', 'b', 'c', 'd', 'e', 'f'])); // ['c', 'f', 'e', 'a', 'd', 'b']\nconsole.log(random.color()); // '000000' ~ 'ffffff'\nconsole.log(random.color('hex')); // '000000' ~ 'ffffff'\nconsole.log(random.color('hex', { prefix: '#' })); // '#000000' ~ '#ffffff'\nconsole.log(random.color('rgb')); // [0, 0, 0] ~ [255, 255, 255]\nconsole.log(random.color('word')); // 'limegreen'\nconsole.log(random.color('word', { language: 'ja' })); // '鉄色'\nconsole.log(random.color.hex()); // '000000' ~ 'ffffff'\nconsole.log(random.color.hex('#')); // '000000' ~ 'ffffff'\nconsole.log(random.color.rgb()); // [0, 0, 0] ~ [255, 255, 255]\nconsole.log(random.color.word()); // 'limegreen'\nconsole.log(random.color.word('cn')); // '紫磨金'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandplus%2Frandplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frandplus%2Frandplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frandplus%2Frandplus/lists"}