1.rand.Intn()随机数生成 func main(){ n := rand.Intn(100) fmt.Println(n) } 输出: 81 我们会发现每次运行的随机数都一样。 2.rand.Seed(seed int64) func