We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f019530 commit 9ba0cfeCopy full SHA for 9ba0cfe
random.go
@@ -56,7 +56,7 @@ func String(n int) string {
56
return string(Bytes(n))
57
}
58
59
-func Shuffle(v []string) []string {
+func Shuffle[T any](v []T) []T {
60
rnd, ok := pool.Get().(*rand.Rand)
61
if !ok {
62
rnd = createRand()
0 commit comments