]> Cypherpunks.ru repositories - gostls13.git/commit
math/rand: mention half-open intervals explicitly
authorRuss Cox <rsc@golang.org>
Tue, 15 Jun 2021 16:46:11 +0000 (12:46 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 16 Jun 2021 16:38:43 +0000 (16:38 +0000)
commita294e4e798d75ee9cf167a75189b1b0dff3664f1
treea58f1aee1323bc2f7a91f59082e4f8c08f13f8e1
parenta6a853f94cf00d8f581d0e6fbcc28898e39557b2
math/rand: mention half-open intervals explicitly

If someone sees "in [0,n)" it might look like a typo.
Saying "in the half-open interval [0,n)" will give people
something to search the web for (half-open interval).

Change-Id: I3c343f0a7171891e106e709ca77ab9db5daa5c84
Reviewed-on: https://go-review.googlesource.com/c/go/+/328210
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/math/rand/rand.go