proxy.golang.org : github.com/mohae/shuffle : v0.0.0-20160809015857-b0f723480796
Shuffle provides crypto/rand based shuffling (randomization) of collections using the Fisher-Yates (Knuth) shuffling algorithm. Functions for shuffling slices of non-composite types are provided, or you can implement the Shuffler interface and shuffle using the shuffle.Interface() func. Shuffling is performed on the received slice; nothing is returned and no additional allocations, aside from those caused by using crypto/rand. If using a math/rand based shuffle is good enough, see the github.com/mohae/shuffle/quick package, which provides a quick, pseudo-random shuffle.
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/mohae/shuffle@v0.0.0-20160809015857-b0f723480796
Published:
Indexed: