rand

package
Version: v0.0.0-...-b6e05e5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL