random

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUMBER   = "0123456789"
	ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	ALPHANUM = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
	ALPHASYM = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~!@#$%^&*_+?-="
)

Variables

This section is empty.

Functions

func Alphabet

func Alphabet(count int) string

Alphabet 获取随机字母字符串

func Alphanum

func Alphanum(count int) string

Alphanum 获取随机字母数字字符串

func Alphasym

func Alphasym(count int) string

Alphasym 获取随机字母数字特殊字符字符串

func Int

func Int(start, end int) int

Int return x start <= x <= end

func Number

func Number(count int) string

Number 获取随机数字字符串

func RandString

func RandString(count int, set string) string

RandString 生成随机字符串

func String

func String(length int) string

String 获取随机字符串, 字符串由数字、字母组成,不包含特殊字符

func Uint

func Uint() uint

Uint 获取随机数

Types

This section is empty.

Jump to

Keyboard shortcuts

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