commit | 14dda7b62fcdb381624aaca63b04df07203856d4 | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Mon Jul 09 14:15:32 2018 +1000 |
committer | Rob Pike <r@golang.org> | Tue Jul 10 02:43:00 2018 +0000 |
tree | dfade7cd53756f3608a8d093ed73f3ae3f592af2 | |
parent | a29023df6a8ed10a250c15f063d79891cb1aa862 [diff] |
exp/rand: add Shuffle, copying CL51891 from math/rand Other than fixing the examples for the different output from the different generator, and using Int31n instead of int31n, this is a straight patch of https://golang.org/cl/51891 to bring the packages closer to alignment. Change-Id: I0a6ca1e2da8209b4da0a5cf03f83b2a6d750ef64 Reviewed-on: https://go-review.googlesource.com/122541 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This subrepository holds experimental and deprecated (in the old
directory) packages.
The idea for this subrepository originated as the pkg/exp
directory of the main repository, but its presence there made it unavailable to users of the binary downloads of the Go installation. The subrepository has therefore been created to make it possible to go get
these packages.
Warning: Packages here are experimental and unreliable. Some may one day be promoted to the main repository or other subrepository, or they may be modified arbitrarily or even disappear altogether.
In short, code in this subrepository is not subject to the Go 1 compatibility promise. (No subrepo is, but the promise is even more likely to be violated by go.exp than the others.)
Caveat emptor.