```
package main
import (
"fmt"
"crypto/rand"
)
func main() {
b := make([]byte, 99999)
fmt.Println(b)
_, err := rand.Read(b)
if err != nil {
fmt.Println(err.Error())
}
fmt.Println(b)
}
```
本人比较菜,大佬别喷我....
更多评论
```go
package main
import (
"crypto/rand"
"fmt"
"math/big"
)
func main() {
for i := 0; i < 10; i++ {
rnd, err := rand.Int(rand.Reader, big.NewInt(6000))
fmt.Println(rnd, err)
}
}
```
#1