generate random number in golang code example
Example 1: go random number
import (
"math/rand"
)
rand.Intn(10)
Example 2: go generate random number
rand.Intn(max - min) + min
import (
"math/rand"
)
rand.Intn(10)
rand.Intn(max - min) + min