On Tue, Mar 26, 2019 at 11:48 AM Liam Breck <[email protected]> wrote:
>
> Could anyone clarify the difference between these two?
>
> r := rand.New(rand.NewSource(...))
>
> var r rand.Rand; r.Seed(...)

Well, it's not a complete program, and maybe I'm missing something,
but it seems to me that the difference is that the first one will give
you a random number generator and the second one will panic at run
time.

Ian

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to