{"id":18848993,"url":"https://github.com/gnlow/dscrtz","last_synced_at":"2026-02-02T15:30:15.456Z","repository":{"id":57216733,"uuid":"264591573","full_name":"gnlow/dscrtz","owner":"gnlow","description":"Generate random value from discrete distribution","archived":false,"fork":false,"pushed_at":"2020-05-17T23:54:59.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T14:48:40.732Z","etag":null,"topics":["discrete-distributions","random"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-17T05:34:17.000Z","updated_at":"2020-06-23T04:08:27.000Z","dependencies_parsed_at":"2022-08-28T21:40:12.016Z","dependency_job_id":null,"html_url":"https://github.com/gnlow/dscrtz","commit_stats":null,"previous_names":["gnlow/dscrtz.js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fdscrtz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fdscrtz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fdscrtz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnlow%2Fdscrtz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnlow","download_url":"https://codeload.github.com/gnlow/dscrtz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786206,"owners_count":19696770,"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","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":["discrete-distributions","random"],"created_at":"2024-11-08T03:17:57.476Z","updated_at":"2026-02-02T15:30:15.390Z","avatar_url":"https://github.com/gnlow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dscrtz\nGenerate random value from discrete distribution\n## Example (Deno)\n```ts\nimport {Discrete} from \"https://raw.githubusercontent.com/gnlow/dscrtz/master/mod.ts\"\nconst distribution = new Discrete([\"A\", 11], [\"B\", 20], [\"C\", 15])\n\nconsole.log(distribution.rand(Math.random()))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Fdscrtz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnlow%2Fdscrtz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnlow%2Fdscrtz/lists"}