random

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Xing = [453]string{} /* 453 elements not displayed */
	Ming = [350]string{} /* 350 elements not displayed */
)

Functions

func RandASCII added in v0.1.16

func RandASCII(unsafe ...bool) rune

func RandArray

func RandArray(v any, unsafe ...bool) any

func RandBigInt added in v0.1.8

func RandBigInt(min, max int64) *big.Int

func RandDate

func RandDate(from, to time.Time, unsafe ...bool) time.Time

func RandHanzi added in v0.1.16

func RandHanzi(unsafe ...bool) rune

func RandIdNo

func RandIdNo(birthday time.Time, unsafe ...bool) string

随机身份证号

func RandInt

func RandInt(min, max int, unsafe ...bool) int

unsafe 为true时,使用伪随机

func RandInt64

func RandInt64(min, max int64, unsafe ...bool) int64

unsafe 为true时,使用伪随机

func RandName

func RandName(unsafe ...bool) string

func RandPhone

func RandPhone(unsafe ...bool) string

随机手机号

Types

This section is empty.

Jump to

Keyboard shortcuts

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