1.0.6 • Published 6 years ago

@luchanso/deterministic-shuffle v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

deterministic-shuffle

Simple deterministic shuffle - for simple things

installation:

yarn add @lucanso/deterministic-shuffle

usage: function shuffle return always deterministic array by day range

import shuffle from '@luchanso/determinisitc-random';

const array = [1, 2, 3, 4, 5];
const startDate = new Date(2017, 0, 1);

console.log(shuffle(array, startDate));

Maybe in future:

  • select custom range
1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago