rand

package
v3.10.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rand

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

Rand is a wrapper around crypto/rand that adds some convenience functions known from math/rand

func (*Rand) Float32

func (r *Rand) Float32() float32

Float32 function implementation

func (*Rand) Float64

func (r *Rand) Float64() float64

Float64 function implementation

func (*Rand) Int

func (r *Rand) Int() int

Int function implementation

func (*Rand) Int31

func (r *Rand) Int31() int32

Int31 function implementation

func (*Rand) Int31n

func (r *Rand) Int31n(n int32) int32

Int31n function implementation copied from the standard library math/rand implementation of Int31n

func (*Rand) Int63

func (r *Rand) Int63() int64

Int63 function implementation

func (*Rand) Int63n

func (r *Rand) Int63n(n int64) int64

Int63n function implementation copied from the standard library math/rand implementation of Int63n

func (*Rand) Intn

func (r *Rand) Intn(n int) int

Intn function implementation

func (*Rand) Shuffle

func (r *Rand) Shuffle(n int, swap func(i, j int))

Shuffle function implementation copied from the standard library math/rand implementation of Shuffle

func (*Rand) Uint32

func (r *Rand) Uint32() uint32

Uint32 function implementation

func (*Rand) Uint64

func (r *Rand) Uint64() uint64

Uint64 function implementation

Jump to

Keyboard shortcuts

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