rand

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSafeRand

func NewSafeRand(seed int64) safeRand

func RandomLowercaseStringWithLen added in v1.8.0

func RandomLowercaseStringWithLen(n int) string

RandomLowercaseStringWithLen returns a random string of specified length containing lowercase runes.

func RandomString

func RandomString() string

RandomString returns a random string with a predefined length of 12.

func RandomStringWithLen

func RandomStringWithLen(n int) string

RandomStringWithLen returns a random string of specified length containing upper- and lowercase runes.

func RandomStringWithPrefix

func RandomStringWithPrefix(prefix string, n int) string

RandomStringWithPrefix returns a random string of length n + len(prefix) with the given prefix, containing upper- and lowercase runes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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