Uploaded February 2024 | Updated December 2026, 3 days ago
Package math/rand has seen extra discussion in the past few months thanks to Russ Cox's revised API proposal. Aside from its technical importance as a first v2 in the standard library, the redesign holds exciting changes for people who love doing cool things with math in Go. Let's take a tour of pseudorandom number generators to understand the improvements and implications of math/rand/v2.
Package math/rand has seen extra discussion in the past few months thanks to Russ Cox's revised API proposal. Aside from its technical importance as a first v2 in the standard library, the redesign holds exciting changes for people who love doing cool things with math in Go. Let's take a tour of pseudorandom number generators to understand the improvements and implications of math/rand/v2.










