{"id":19181391,"url":"https://github.com/uid11/distribution-of-random-uniform-sort-function","last_synced_at":"2026-03-01T06:35:06.522Z","repository":{"id":172332696,"uuid":"649146968","full_name":"uid11/distribution-of-random-uniform-sort-function","owner":"uid11","description":"Distribution generated by a random uniform sort function","archived":false,"fork":false,"pushed_at":"2023-06-04T02:47:02.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T02:20:01.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/uid11.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-03T23:45:49.000Z","updated_at":"2023-06-03T23:45:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ec0d223-35cb-468a-8151-3ad213a25be9","html_url":"https://github.com/uid11/distribution-of-random-uniform-sort-function","commit_stats":null,"previous_names":["uid11/distribution-of-random-uniform-sort-function"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uid11/distribution-of-random-uniform-sort-function","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uid11%2Fdistribution-of-random-uniform-sort-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uid11%2Fdistribution-of-random-uniform-sort-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uid11%2Fdistribution-of-random-uniform-sort-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uid11%2Fdistribution-of-random-uniform-sort-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uid11","download_url":"https://codeload.github.com/uid11/distribution-of-random-uniform-sort-function/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uid11%2Fdistribution-of-random-uniform-sort-function/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29962028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T05:59:08.471Z","status":"ssl_error","status_checked_at":"2026-03-01T05:58:04.208Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-09T10:53:14.192Z","updated_at":"2026-03-01T06:35:06.467Z","avatar_url":"https://github.com/uid11.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# distribution-of-random-uniform-sort-function\n\n[![dependencies: none][dependencies-none-image]][dependencies-none-url]\n[![code style: prettier][prettier-image]][prettier-url]\n[![Conventional Commits][conventional-commits-image]][conventional-commits-url]\n[![License MIT][license-image]][license-url]\n\nhttps://uid11.github.io/distribution-of-random-uniform-sort-function/\n\nDistribution generated by a random uniform sort function (`Math.random`),\nthat is, generated in this way:\n\n```js\n// [0, 1, 2, ..., 99]\nconst numbers = Array(100).fill().map((_, i) =\u003e i);\n\nconst sortFunction = () =\u003e (Math.random() \u003e 0.5 ? 1 : -1);\n\nconst distribution = [...numbers].sort(sortFunction);\n```\n\n## License\n\n[MIT][license-url]\n\n[conventional-commits-image]: https://img.shields.io/badge/Conventional_Commits-1.0.0-yellow.svg \"The Conventional Commits specification\"\n[conventional-commits-url]: https://www.conventionalcommits.org/en/v1.0.0/\n[dependencies-none-image]: https://img.shields.io/badge/dependencies-none-success.svg \"No dependencies\"\n[dependencies-none-url]: https://github.com/uid11/distribution-of-random-uniform-sort-function/blob/main/package.json\n[license-image]: https://img.shields.io/badge/license-MIT-blue.svg \"The MIT License\"\n[license-url]: LICENSE\n[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg \"Prettier code formatter\"\n[prettier-url]: https://prettier.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuid11%2Fdistribution-of-random-uniform-sort-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuid11%2Fdistribution-of-random-uniform-sort-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuid11%2Fdistribution-of-random-uniform-sort-function/lists"}