rand

package
v0.0.0-...-84f57ce Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AsciiVisibleStart = byte(0x20)
	AsciiVisibleEnd   = byte(0x7E)
	AsciiLowerCaseA   = byte('a')
	AsciiLowerCaseZ   = byte('z')
	AsciiUpperCaseA   = byte('A')
	AsciiUpperCaseZ   = byte('Z')
	AsciiNumeric0     = byte('0')
	AsciiNumeric9     = byte('9')
)

Variables

This section is empty.

Functions

func Byte

func Byte(min, max byte) byte

func ByteAsciiAlphabetLower

func ByteAsciiAlphabetLower() byte

func ByteAsciiAlphabetUpper

func ByteAsciiAlphabetUpper() byte

func ByteAsciiNumeric

func ByteAsciiNumeric() byte

func ByteAsciiVisible

func ByteAsciiVisible() byte

func Int

func Int(min, max int) int

func Int32

func Int32(min, max int32) int32

func Int64

func Int64(min, max int64) int64

func Integer

func Integer[T generic.Integer](funRand func(n T) T, min T, max T) T

Integer

funRand func(n T) should return [0,n)

func NewRandDefault

func NewRandDefault() *rand.Rand

func NewRandPCG

func NewRandPCG(seed1, seed2 uint64) *rand.Rand

func UInt

func UInt(min, max uint) uint

func UInt32

func UInt32(min, max uint32) uint32

func UInt64

func UInt64(min, max uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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