2 ms·
If you’re using Go, you can use rand.Perm (https://golang.org/pkg/math/rand/#Perm https://golang.org/pkg/math/rand/#Perm), which uses a Fisher-Yates shuffle und
by jamespwilliams 5y ago
If you’re using Go, you can use rand.Perm (https://golang.org/pkg/math/rand/#Perm https://golang.org/pkg/math/rand/#Perm), which uses a Fisher-Yates shuffle under the hood.