https://golang.org/pkg/math/rand/#Seed

*"Seed uses the provided seed value to initialize the default Source to a 
deterministic state. If Seed is not called, the generator behaves as if 
seeded by Seed(1). "* 


So even without calling rand.Seed your output will be the same everytime 
you run the program unless you take action to make that different. 

( note that the second value obtained from Rand.IntN is not the same as 
that for the first value obtained from Rand.IntN seeded with the value 2 )

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to