Documentation ¶
Index ¶
- Constants
- func AlphabetLower(n int) string
- func Hex(n int) string
- func Int32Between(min, max int32) int32
- func Int64Between(min, max int64) int64
- func IntBetween(min, max int) int
- func Letter(size int) string
- func Name() string
- func NewRandHandler() *rand.Rand
- func Numeric(size int) string
- func NumericBetween(min, max int64) int64
- func String(n int, charset string) string
- func Strings(size int) string
Constants ¶
View Source
const ( CharsetLowercase = "abcdefghijklmnopqrstuvwxyz" CharsetAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" CharsetNumeral = "1234567890" CharsetHex = "1234567890abcdef" )
Variables ¶
This section is empty.
Functions ¶
func AlphabetLower ¶ added in v0.2.20
AlphabetLower 从小写字符集生成指定长度的随机字符串
func Int32Between ¶
Int32Between random number between min-max
func Int64Between ¶
Int64Between random number between min-max
func NumericBetween ¶
NumericBetween random number between min-max
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.