跳转至

附录2.math包

math/rand

随机数包

rand.Intn

生成一个在[0, n)的整数。

rand.Intn(10)