grand

package
v1.2024.116 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

随机数管理

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rand

func Rand(min, max int) int

获得一个 min, max 之间的随机数(min <= x <= max)

func RandDigits

func RandDigits(n int) string

获得指定长度的随机数字字符串

func RandLetters

func RandLetters(n int) string

获得指定长度的随机字母字符串

func RandStr

func RandStr(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