kos/util/random/int.go

10 lines
111 B
Go
Raw Normal View History

2023-04-23 17:57:36 +08:00
package random
import (
"math/rand"
)
func Int(min, max int64) int64 {
return min + rand.Int63n(max-min)
}