Hacker News new | ask | show | jobs
by jamespwilliams 1878 days ago
If you’re using Go, you can use rand.Perm (https://golang.org/pkg/math/rand/#Perm), which uses a Fisher-Yates shuffle under the hood.