rand

package
v0.0.0-...-a027a2a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Reader is a global random number source
	Reader *rand.Rand
)

Functions

func Int

func Int() int

Int wraps Rand.Int

func Int63n

func Int63n(n int64) int64

Int63n wraps Rand.Int63n

func Intn

func Intn(n int) int

Intn wraps Rand.Intn

func Read

func Read(b []byte) (int, error)

Read wraps Rand.Read

Types

This section is empty.

Jump to

Keyboard shortcuts

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