package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
rd := rand.New(rand.NewSource(time.Now().UnixNano()))
for true {
var num = rd.Intn(100)
if num == 13 {
fmt.Println("猜对了")
break
} else {
fmt.Println("^", num)
}
}
}
02-24
741
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)