random

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandBytes

func RandBytes(n int) []byte

func RandFloat32

func RandFloat32() float32

func RandInt

func RandInt() int

func RandInt16

func RandInt16() int16

func RandInt32

func RandInt32() int32

func RandInt64

func RandInt64() int64

func RandStr

func RandStr(length int) string

Constructs an alphanumeric string of given length.

func RandTime

func RandTime() time.Time

func RandUint

func RandUint() uint

func RandUint16

func RandUint16() uint16

func RandUint16Exp

func RandUint16Exp() uint16

Distributed pseudo-exponentially to test for various cases

func RandUint32

func RandUint32() uint32

func RandUint32Exp

func RandUint32Exp() uint32

Distributed pseudo-exponentially to test for various cases

func RandUint64

func RandUint64() uint64

func RandUint64Exp

func RandUint64Exp() uint64

Distributed pseudo-exponentially to test for various cases

Types

This section is empty.

Jump to

Keyboard shortcuts

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