I found this example at Go Cookbook, which is equivalent to rand.Range(min, max int) (if that function existed): rand.Intn(max - min) + min.
確定! 回上一頁