rand

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package rand implements math/rand functions in a concurrent-safe way with a global random source, independent of math/rand's global source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32

func Float32() float32

Float32 implements rand.Float32 on the global source.

func Float64

func Float64() float64

Float64 implements rand.Float64 on the global source.

func Int

func Int() int

Int implements rand.Int on the global source.

func Int31

func Int31() int32

Int31 implements rand.Int31 on the global source.

func Int31n

func Int31n(n int32) int32

Int31n implements rand.Int31n on the global source.

func Int63

func Int63() int64

Int63 implements rand.Int63 on the global source.

func Int63n

func Int63n(n int64) int64

Int63n implements rand.Int63n on the global source.

func Intn

func Intn(n int) int

Intn implements rand.Intn on the global source.

func Perm

func Perm(n int) []int

Perm implements rand.Perm on the global source.

func Read

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

Read implements rand.Read on the global source.

func Seed

func Seed(seed int64)

Seed implements rand.Seed on the global source.

func Shuffle

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

Shuffle implements rand.Shuffle on the global source.

func Uint32

func Uint32() uint32

Uint32 implements rand.Uint32 on the global source.

func Uint64

func Uint64() uint64

Uint64 implements rand.Uint64 on the global source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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