项目作者: jan25

项目描述 :
Shuffling algorithm library
高级语言: TypeScript
项目地址: git://github.com/jan25/shuffle.git
创建时间: 2020-09-27T17:46:51Z
项目社区:https://github.com/jan25/shuffle

开源协议:

下载


Shuffle

Simple library that implements a shuffling algorithm based on Spotify’s blog post.

It solves shuffling problem when there is no need for ‘real’ randomised shuffling. Imagine sorting a list of music tracks when we don’t want tracks from same artist or same genre next to each other. This algorithm tries to logically group list items and distribute each group’s items as uniformly as possible throughout the list.

Make changes

Make sure to setup Deno. Run changes against tests:

  1. > deno test