You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
306 B

package rand
import (
"fmt"
"testing"
)
func TestGetNum6(tt *testing.T) {
for i := 0; i < 1000; i++ {
fmt.Println(randTool.GetNum6())
}
}
func TestRandomCode(tt *testing.T) {
fmt.Println(randTool.RandomCode(6))
}
func TestRandomString(tt *testing.T) {
fmt.Println(randTool.RandomString(32))
}