prand

package
v0.0.0-...-3c2089e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpFloat64

func ExpFloat64() (float64, error)

func Float32

func Float32() (float32, error)

func Float64

func Float64() (float64, error)

func Int

func Int() (int, error)

func Int31

func Int31() (int32, error)

func Int31n

func Int31n(n int32) (int32, error)

func Int63

func Int63() (int64, error)

func Int63n

func Int63n(n int64) (int64, error)

func Intn

func Intn(n int) (int, error)

func NormFloat64

func NormFloat64() (float64, error)

func Perm

func Perm(n int) ([]int, error)

func Read

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

func Shuffle

func Shuffle(n int, swap func(i, j int)) error

func Uint32

func Uint32() (uint32, error)

func Uint64

func Uint64() (uint64, error)

Types

type Default

type Default interface {
	New() rand.Source
}

type Source

type Source interface {
	New() rand.Source
}

Jump to

Keyboard shortcuts

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