Open
Description
This issue tracks a remaining subset of the accepted proposal #61716. Specifically:
Once math/rand/v2 has shipped, we would tag and delete x/exp/rand. This would keep programs that already use x/exp/rand working (by reference to the tagged version or older versions of x/exp) but allow us to delete the code from the main branch of x/exp, making clear that development on it has ended.
math/rand/v2 shipped in Go 1.22, so by now it's available in all supported versions of Go. The golang.org/x/exp/rand package was already marked deprecated (issue #71373, CL 644475). As described in #60557 (comment), all that's left is:
- isolate it out into a nested module
- tag it as v0.1.0-deprecated (tag name would be
rand/v0.1.0-deprecated
) - delete it from the main branch of x/exp