rand

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlledRand

type ControlledRand struct {
	// contains filtered or unexported fields
}

tests should use this random object when generating random values

func NewControlledRand

func NewControlledRand(t testLogger) *ControlledRand

func (ControlledRand) Float32

func (sr ControlledRand) Float32() float32

func (ControlledRand) Float64

func (sr ControlledRand) Float64() float64

func (ControlledRand) Int

func (sr ControlledRand) Int() int

func (ControlledRand) Int31

func (sr ControlledRand) Int31() int32

func (ControlledRand) Int31n

func (sr ControlledRand) Int31n(n int32) int32

func (ControlledRand) Int63

func (sr ControlledRand) Int63() int64

func (ControlledRand) Int63n

func (sr ControlledRand) Int63n(n int64) int64

func (ControlledRand) Intn

func (sr ControlledRand) Intn(n int) int

func (ControlledRand) Perm

func (sr ControlledRand) Perm(n int) []int

func (ControlledRand) Read

func (sr ControlledRand) Read(p []byte) (n int, err error)

func (ControlledRand) Seed

func (sr ControlledRand) Seed(seed int64)

func (ControlledRand) Shuffle

func (sr ControlledRand) Shuffle(n int, swap func(i, j int))

func (ControlledRand) Uint32

func (sr ControlledRand) Uint32() uint32

func (ControlledRand) Uint64

func (sr ControlledRand) Uint64() uint64

Jump to

Keyboard shortcuts

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