fix issue in repeated rand value of grand.Intn
package main
import (
- "github.com/gogf/gf/g/test/gtest"
+ "fmt"
+ "github.com/gogf/gf/g/util/grand"
)
-func test() []byte {
- return nil
-}
+
+
func main() {
- gtest.Assert(test(), nil)
+ for {
+ fmt.Println(grand.Intn(100))
+ }
+
}
\ No newline at end of file
