trandom

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomNumber

func RandomNumber(min, max int) int

RandomNumber 获取指定数字区间的随机数 Args: min int 最小值, max int 最大值 Returns: int 随机数 e.g.: Args: 1, 10 Returns: 5

func RandomString

func RandomString(length int) string

RandomString 获取指定长度的随机字符串 Args: length int 字符串长度 Returns: string 指定长度的随机字符串 e.g.: Args: 10 Returns: "oq3kefg7ij"

Types

This section is empty.

Jump to

Keyboard shortcuts

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