Golang生成-100,100之间随机整数

nfwater · 2017-05-23 17:25:27 · 7905 次点击
更多评论
polaris
社区,需要你我一同完善!

比如,要 -100 到 100,可以这么弄:rand.Intn(200) - 100

#1