package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
min := 10
max := 30
fmt.Println(rand.Intn(max - min + 1) + min)
}
Related Articles
-
2024/01/19
-
2023/03/04
-
2022/12/06
-
2021/11/16
-
2021/11/04
-
2021/10/11
-
2021/08/27
-
2021/07/17
-
2021/03/07
-
2021/02/26
-
2021/02/15
-
2020/07/21
-
2020/07/18