rand

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenFixedLengthChineseChars

func GenFixedLengthChineseChars(length int) string

GenFixedLengthChineseChars 指定长度随机中文字符(包含复杂字符)

func GenRandomLengthChineseChars

func GenRandomLengthChineseChars(start, end int) string

GenRandomLengthChineseChars 指定范围随机中文字符

func GenerateRandomCode

func GenerateRandomCode() string

GenerateRandomCode 生成六位随机码

func RandomInt

func RandomInt(start int, end int) int

func RandomInt64

func RandomInt64(start int64, end int64) int64

func RandomStr

func RandomStr(len int) string

RandomStr 随机英文小写字母

func RandomString

func RandomString(n int) string

RandomString 生成指定长度的随机字母和数字字符串,包括0-9、a-z、A-Z的所有字符。

Types

This section is empty.

Jump to

Keyboard shortcuts

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