rand

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Reader is a global random number source
	Reader *rand.Rand
)

Functions

func Int

func Int() int

Int wraps Rand.Int

func Int63n

func Int63n(n int64) int64

Int63n wraps Rand.Int63n

func Intn

func Intn(n int) int

Intn wraps Rand.Intn

func Password

func Password(length int) (string, error)

Password generates a random password

func Read

func Read(b []byte) (int, error)

Read wraps Rand.Read

Types

This section is empty.

Jump to

Keyboard shortcuts

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