grand

package
Version: v2021.513.1742+incompa... Latest Latest
Warning

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

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

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL