You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the section package, there is Note: The environment in which these programs are executed is deterministic, so each time you run the example program rand.Intn will return the same number. in the description. However, I got different numbers run the example program every time.
The text was updated successfully, but these errors were encountered:
With go 1.20 "math/rand package now automatically seeds the global random
number generator" (https://go.dev/doc/go1.20#math/rand) and we do not need
the appengine specific note that the Go Playground environment for the tour
programs is deterministic.
As the note is specific to the appengine version (i.e. it is already not shown
in the Go offline tour) it should be fine to just remove the text.
Fixesgolang/tour#1448
Context: https://go.dev/tour/basics/1
In the section
package
, there isNote: The environment in which these programs are executed is deterministic, so each time you run the example program rand.Intn will return the same number.
in the description. However, I got different numbers run the example program every time.The text was updated successfully, but these errors were encountered: