random

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int() int

Int generates a random integer between 1 and math.MaxInt32.

func IntByRange

func IntByRange(min, max int64) int64

IntByRange generates a random integer between min and max.

func Name

func Name() string

Name generates a random owner name.

func String

func String(size int) string

String generates a random string of length n.

func Timestamp

func Timestamp() time.Time

Timestamp generates a random timestamp.

Types

This section is empty.

Jump to

Keyboard shortcuts

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