go rand random digit 三月 06, 2017 import ( "fmt" "math/rand" ) func main () { fmt. Println (rand. Intn ( 3 ))// 0 , 1, 2 } 阅读全文