random

package
v0.0.0-...-6e596f9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Currency

func Currency() string

Currency generates a random currency code. It will panic if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func Email

func Email() string

Email generates a random email. It will panic if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func Int

func Int(max int64) int64

Int generates a random integer between 0 and max. It will panic if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func Money

func Money() int64

Money generates a random amount of money between 0 and 1000. It will panic if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func Owner

func Owner() string

Owner generates a random owner name. It will panic if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

func String

func String(n int) string

String returns a random generated string of length n. It will panic if the system's secure random number generator fails to function correctly, in which case the caller should not continue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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