rand

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenIdMin = 1000000000
	TokenIdMax = 9999999999
)

tokenId随机获取

Variables

This section is empty.

Functions

func RandInt

func RandInt(min int, max int) int

获取给定范围的随机值

func RandNum

func RandNum() string

获取6位长度的随机码

func RandNumStr

func RandNumStr(length int32) string

获取指定长度的随机数字字符串

func RandTokenId

func RandTokenId() int64

随机tokenId

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL