by rmcpherson · 11y ago · 0 comments
We’ll discuss these topics only briefly here, pushing most details off to later chapters, since the primary goal right now is to give you an idea of what Go looks like...
it's probably clearer to use the default random source.
The fix is just a couple lines and, I would argue, should be included in the source to eliminate the surprising behavior. http://play.golang.org/p/1WlhOdJ1pk
To run the examples, you will need at least version 1.5 of Go.
$ go version
go version go1.5 linux/amd64
Follow the instructions at https://golang.org/doc/install if the go tool on your computer is older or missing.