This commit is contained in:
Your Name
2018-03-07 15:31:02 +03:00
parent 8f91676943
commit 26296c2cc7
5 changed files with 296 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package utils
import (
"math/rand"
"time"
)
func Random(min, max int) int {
rand.Seed(time.Now().Unix())
return rand.Intn(max-min) + min
}