To generate a normally distributed random number in Go, you can use the rand.NormFloat64() function from the math/rand package. This function returns a random float64 value drawn from the standard normal distribution with mean 0 and variance 1.
main.go321 chars19 linesYou can adjust the mean and standard deviation by multiplying and adding to the generated number accordingly.
gistlibby LogSnag