Skip to content

Commit

Permalink
content: add note about using rand.Seed with the time
Browse files Browse the repository at this point in the history
Fixes #12

Change-Id: I3e31796e68052c424ef6b5670aac516e461d1809
Reviewed-on: https://go-review.googlesource.com/44931
Reviewed-by: Andrew Gerrand <adg@golang.org>
  • Loading branch information
robphoenix authored and adg committed Jun 20, 2017
1 parent 624453e commit d844dc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/basics.article
Expand Up @@ -18,13 +18,14 @@ By convention, the package name is the same as the last element of the import pa
#appengine: deterministic, so each time you run the example program
#appengine: `rand.Intn` will return the same number.
#appengine:
#appengine: (To see a different number, seed the number generator; see [[https://golang.org/pkg/math/rand/#Seed][`rand.Seed`]].)
#appengine: (To see a different number, seed the number generator; see [[https://golang.org/pkg/math/rand/#Seed][`rand.Seed`]].
#appengine: Time is constant in the playground, so you will need to use something else as the seed.)

.play basics/packages.go

* Imports

This code groups the imports into a parenthesized, "factored" import statement.
This code groups the imports into a parenthesized, "factored" import statement.

You can also write multiple import statements, like:

Expand Down

0 comments on commit d844dc7

Please sign in to comment.