Seed initialise default resource once for random method and using NewSource create different resources for random method
On Wednesday, 27 March 2019 21:46:18 UTC+5:30, dja...@gmail.com wrote: > > Hi, > I think OP question actually is what is difference between: > r := rand.New(rand.NewSource(VALUE)) > > and > r := rand.New(rand.NewSource(ANYTHING)) > > r.Seed(VALUE) > > https://play.golang.org/p/afOfMjcNs1q > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/75708bf1-308f-452f-b625-0f3eb2da795d%40googlegroups.com.