grand

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CHARS = []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
	"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
	"1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}

Functions

func GenerateRandomNumber added in v0.7.0

func GenerateRandomNumber(start int, end int, count ...int) []int

GenerateRandomNumber 生成count(默认为end)个[start,end)结束的不重复的随机数

func RandAllString

func RandAllString(lenNum int) string

RandAllString 生成随机字符串([a~zA~Z0~9])

lenNum 长度

func RandNumString

func RandNumString(lenNum int) string

RandNumString 生成随机数字字符串([0~9])

lenNum 长度

func RandString

func RandString(lenNum int) string

RandString 生成随机字符串(a~zA~Z])

lenNum 长度

Types

This section is empty.

Jump to

Keyboard shortcuts

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