{"id":15451785,"url":"https://github.com/willscott/zipfian","last_synced_at":"2025-07-20T07:10:19.907Z","repository":{"id":16612027,"uuid":"19366860","full_name":"willscott/zipfian","owner":"willscott","description":"Zipf Distribution Generation for Node.js","archived":false,"fork":false,"pushed_at":"2014-07-26T05:57:21.000Z","size":209,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T23:34:30.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/willscott.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":"2014-05-02T05:31:02.000Z","updated_at":"2016-11-26T12:13:39.000Z","dependencies_parsed_at":"2022-07-13T13:51:05.472Z","dependency_job_id":null,"html_url":"https://github.com/willscott/zipfian","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fzipfian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fzipfian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fzipfian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fzipfian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willscott","download_url":"https://codeload.github.com/willscott/zipfian/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423726,"owners_count":20774820,"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":[],"created_at":"2024-10-01T21:39:14.782Z","updated_at":"2025-03-31T06:13:27.097Z","avatar_url":"https://github.com/willscott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"zipfian\n=======\n\nZipf Distribution Generation for Node.js\n\n[![zipf distribution](https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Zipf_distribution_PMF.png/325px-Zipf_distribution_PMF.png)](https://en.wikipedia.org/wiki/Zipf's_law)\n\nUsage\n-----\n\nTo generate a zipf generator, create an instance of ZipfGenerator, and then get your numbers!\n\n```javascript\nvar zipfGenerator = require('zipfian').getGenerator(1000);\n\nconsole.log(zipfGenerator.next());\n```\n\nIf you want more control over the generator parameters, you can create the generator yourself.\n\n```javascript\n\nvar Generator = require('zipfian').ZipfGenerator;\n\nvar zipfGenerator = new Generator(min, max, zipfConstant);\n```\n\n\nBugs + Contributing\n-------------------\n\nPlease submit bugs or feature requests in github issues. In particular, this implementation\nis missing the ability to resize the generator found in previous implementation. Contributions\nare welcome!\n\nTodo\n----\n\n - Resizing a generator\n - Scrambled generator\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillscott%2Fzipfian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillscott%2Fzipfian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillscott%2Fzipfian/lists"}