Check out example codes for "go generate random number". It will help you in understanding the concepts better.

Code Example 1

rand.Intn(max - min) + min

Learn ReactJs, React Native from akashmittal.com