1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-14 09:42:28 +08:00

增加test测试

This commit is contained in:
guanren
2024-10-18 13:34:01 +08:00
parent a72ca265dc
commit aa5c8c585c
2 changed files with 8 additions and 0 deletions

View File

@@ -329,6 +329,7 @@ func UUIdV4() (string, error) {
}
// RandNumLen 生成一个长度为len的随机数
// Play: https://go.dev/play/p/jpIalcD5rMo
func RandNumLen(len int) int {
m := int(math.Pow10(len) - 1)
i := int(math.Pow10(len - 1))