Skip to content

Array shuffle with random seed -- deterministic and fast -- for JavaScript

License

Notifications You must be signed in to change notification settings

yixizhang/seed-shuffle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seed-shuffle

This is an util to generate a shuffled array, with deterministic randomness provided by the seed.

How

> shuffle([1, 3, 2], 3)
[ 2, 3, 1 ]
> shuffle([1, 3, 2], 4)
[ 1, 3, 2 ]

About

Array shuffle with random seed -- deterministic and fast -- for JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published