rand

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int) []byte

Bytes returns n random bytes generated from math/rand's global default Source.

func Str

func Str(length int) string

Str constructs a random alphanumeric string of given length from math/rand's global default Source.

func StrFromSource

func StrFromSource(r *mrand.Rand, length int) string

StrFromSource produces a random string of a specified length from the specified random source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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