commit | ad72ba5abdd7746d225ac3305c8635f468440267 | [log] [tgz] |
---|---|---|
author | Andrew Stone <a@stoney.io> | Fri May 04 13:34:49 2018 -0700 |
committer | Andrew Stone <a@stoney.io> | Fri May 04 13:34:49 2018 -0700 |
tree | 122c9bd2732c7f36409d3927b930f780bbf8af84 | |
parent | 66e31a9ea5b4aeb1be70ac68730c2b07b4e32f3b [diff] [blame] |
Updated SliceTricks (markdown)
diff --git a/SliceTricks.md b/SliceTricks.md index 72f0113..a9e16bc 100644 --- a/SliceTricks.md +++ b/SliceTricks.md
@@ -137,6 +137,9 @@ ### Shuffling Fisher–Yates algorithm: + +> Since go1.10, this is available at [math/rand.Shuffle](https://godoc.org/math/rand#Shuffle) + ```go for i := len(a) - 1; i > 0; i-- { j := rand.Intn(i + 1)