initial crm server

This commit is contained in:
zchengo
2022-11-28 16:38:30 +08:00
parent 61122aef6a
commit af7cd0c44c
36 changed files with 2615 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
package common
import (
"math/rand"
"time"
)
func RandInt(min, max int) int {
rand.Seed(time.Now().UnixNano())
if min >= max || min == 0 || max == 0 {
return max
}
return rand.Intn(max-min+1) + min
}