random

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomNumber

func RandomNumber(n int) string

RandomNumber 返回一个n位数字的string。首位可能是"0"。可用于生成随机号码。

func RandomString

func RandomString(n int) string

RandomString 返回一个随机字符串(不含特殊符号) 参考:https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go/22892986

func RandomStringWithSpecial

func RandomStringWithSpecial(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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