mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2026-04-22 23:17:23 +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
|
|
}
|