mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-09-27 03:36:10 +08:00
13 lines
131 B
Go
13 lines
131 B
Go
package utils
|
|
|
|
import (
|
|
"math/rand"
|
|
)
|
|
|
|
func RandomInt(a, b int) int {
|
|
if a > b {
|
|
a, b = b, a
|
|
}
|
|
return rand.Intn(b-a+1) + a
|
|
}
|