Documentation ¶
Index ¶
- type ControlledRand
- func (sr ControlledRand) Float32() float32
- func (sr ControlledRand) Float64() float64
- func (sr ControlledRand) Int() int
- func (sr ControlledRand) Int31() int32
- func (sr ControlledRand) Int31n(n int32) int32
- func (sr ControlledRand) Int63() int64
- func (sr ControlledRand) Int63n(n int64) int64
- func (sr ControlledRand) Intn(n int) int
- func (sr ControlledRand) Perm(n int) []int
- func (sr ControlledRand) Read(p []byte) (n int, err error)
- func (sr ControlledRand) Seed(seed int64)
- func (sr ControlledRand) Shuffle(n int, swap func(i, j int))
- func (sr ControlledRand) Uint32() uint32
- func (sr ControlledRand) Uint64() uint64
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
Click to show internal directories.
Click to hide internal directories.