random

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandInt

func RandInt(max int) int

RandInt 生成指定范围内随机数 [0,max]

func RandRangeInt

func RandRangeInt(min, max int) int

RandRangeInt 生成指定范围内随机数 [min,max]

func RandString

func RandString(length int) string

Types

type NumberRandom added in v0.0.5

type NumberRandom struct {
	// contains filtered or unexported fields
}

func NewNumberRandom added in v0.0.5

func NewNumberRandom(seed int64) *NumberRandom

func (*NumberRandom) RandInt added in v0.0.5

func (r *NumberRandom) RandInt(max int) int

func (*NumberRandom) RandRangeInt added in v0.0.5

func (r *NumberRandom) RandRangeInt(min, max int) int

Jump to

Keyboard shortcuts

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