Package rand

Table of Contents

Seed a random number generator howto

rand.Seed(time.Now().UTC().UnixNano())

Generate an integer in a given range howto

rand.Seed(time.Now().Unix())
return rand.Intn(max - min) + min