I\'m trying to understand precisely why, when called from an external function, my time seeded random number generator returns sequences of identical numbers.
Minimal wo
I'm not a Go expert but I think the problem is a generic programming issue. It is related to the fact you set the seed to each call. The seed is based on time function. So what is happening is that in a very short time, you have a number of calls while the time is not changed (yet) and so you get the same value because you are setting the same seed again and again.
Try to set the seed, once only and outside the for loop of calls.