rand

package
v0.0.0-...-64835f2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomBytes

func GenerateRandomBytes(length int) ([]byte, error)

GenerateRandomBytes ...

func GenerateRandomInt

func GenerateRandomInt(min, max int) int

Generate random number in [0,n)

func GenerateRandomInt64

func GenerateRandomInt64(min, max int64) int64

Generate random number in [0,n)

func MustGenerateRandomBytes

func MustGenerateRandomBytes(length int) []byte

MustGenerateRandomBytes generates random bytes or panics if it can't

Types

This section is empty.

Jump to

Keyboard shortcuts

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