grand

package
v0.0.0-...-882a3c6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 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

获得指定长度的随机字符串(可能包含数字和字母)

func Seed

func Seed(seed ...int64)

修改全局随机数seed

Types

This section is empty.

Jump to

Keyboard shortcuts

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