This recipe shows how to generate random numbers. This functionality is provided by the math/rand package. The random numbers generated by math/rand are considered cryptographically insecure because the sequences are repeatable with given seed.
To generate cryptographically secure numbers, the crypto/rand package should be used. These sequences are not repeatable.