{"id":20246603,"url":"https://github.com/skepticalhippo/fisher-yates-shuffle","last_synced_at":"2025-04-10T21:15:07.631Z","repository":{"id":74192315,"uuid":"83210375","full_name":"SkepticalHippo/fisher-yates-shuffle","owner":"SkepticalHippo","description":"Fisher-Yates Shuffle Implementation in JavaScript","archived":false,"fork":false,"pushed_at":"2018-03-27T19:04:16.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T21:14:53.678Z","etag":null,"topics":["cards","deck","deck-building","fisher","javascript","knuth","random","shuffle","sort","yates"],"latest_commit_sha":null,"homepage":null,"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/SkepticalHippo.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":"2017-02-26T13:27:26.000Z","updated_at":"2024-02-08T16:56:55.000Z","dependencies_parsed_at":"2023-03-11T16:48:10.505Z","dependency_job_id":null,"html_url":"https://github.com/SkepticalHippo/fisher-yates-shuffle","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Ffisher-yates-shuffle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Ffisher-yates-shuffle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Ffisher-yates-shuffle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkepticalHippo%2Ffisher-yates-shuffle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkepticalHippo","download_url":"https://codeload.github.com/SkepticalHippo/fisher-yates-shuffle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298312,"owners_count":21080320,"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":["cards","deck","deck-building","fisher","javascript","knuth","random","shuffle","sort","yates"],"created_at":"2024-11-14T09:31:06.121Z","updated_at":"2025-04-10T21:15:07.623Z","avatar_url":"https://github.com/SkepticalHippo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fisher-Yates Shuffle [![Build Status](https://travis-ci.org/SkepticalHippo/fisher-yates-shuffle.svg?branch=master)](https://travis-ci.org/SkepticalHippo/fisher-yates-shuffle)\n\nA JavaScript implementation of the Fisher-Yates Shuffle algorithm.\n\n## Requirements\n\n* NodeJS 6+\n\n## Installation\n\n`npm install fisher-yates-shuffle --save`\n\n## Usage\n\n```js\nconst shuffle = require('fisher-yates-shuffle');\nconst deck = ['a', 'b', 'c', 'd'];\nconst shuffledDeck = shuffle(deck);\n```\n\n```js\nconst randomizer = function() {\n    return 0.321\n};\nconst shuffle = require('fisher-yates-shuffe');\nconst deck = ['a', 'b', 'c', 'd'];\nconst shuffledDeck = shuffle(deck, randomizer);\n```\n\n## Notes\n\n* It clones the given `Array`, so if it's rather large, make sure you have enough memory allocated.\n* This library is still rather naïve and could be improved. If you have any suggestions, please open up an _Issue_ or a _Pull Request_.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskepticalhippo%2Ffisher-yates-shuffle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskepticalhippo%2Ffisher-yates-shuffle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskepticalhippo%2Ffisher-yates-shuffle/lists"}