rand

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Reader io.Reader = &cryptoRandReader{}

Reader is a global random number source

Functions

func Int

func Int() int

Int wraps Int63n

func Int63n

func Int63n(n int64) int64

Int63n wraps rand.Int

func Intn

func Intn(n int) int

Intn wraps Int63n

func Password added in v1.9.0

func Password(length int) (string, error)

Password generates a random password

Types

This section is empty.

Jump to

Keyboard shortcuts

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